An open source, non-profit web search engine
Specify cache at higher level
Daoud Clarked61416b366ab
diff --git a/nginx.conf.sigil b/nginx.conf.sigilindex 913436d..2cb86a4 100644--- a/nginx.conf.sigil+++ b/nginx.conf.sigil@@ -39,8 +39,11 @@ server {keepalive_timeout 70;{{ if and (eq $.SPDY_SUPPORTED "true") (ne $.HTTP2_SUPPORTED "true") }}add_header Alternate-Protocol {{ $.PROXY_SSL_PORT }}:npn-spdy/2;{{ end }}+ proxy_cache custom_cache;+location / {+ add_header X-Proxy-Cache $upstream_cache_status;## Start CORS here. See http://enable-cors.org/server_nginx.html for comments@@ -96,10 +99,6 @@ server {proxy_set_header X-Forwarded-Proto {{ $.PROXY_X_FORWARDED_PROTO }};proxy_set_header X-Request-Start $msec;{{ if $.PROXY_X_FORWARDED_SSL }}proxy_set_header X-Forwarded-Ssl {{ $.PROXY_X_FORWARDED_SSL }};{{ end }}-- # proxy_cache custom_cache;- # proxy_cache_valid any 10m;- # add_header X-Proxy-Cache $upstream_cache_status always;}{{ if $.CLIENT_MAX_BODY_SIZE }}client_max_body_size {{ $.CLIENT_MAX_BODY_SIZE }};{{ end }}