Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Move back

Daoud Clarke31458cc8fe04
diff --git a/nginx.conf.sigil b/nginx.conf.sigil
index 0352d22..a6bb691 100644
--- a/nginx.conf.sigil
+++ b/nginx.conf.sigil
@@ -73,10 +73,6 @@ server {
}
### End CORS
- proxy_cache custom_cache;
- proxy_cache_valid any 10m;
- add_header X-Proxy-Cache $upstream_cache_status always;
-
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
@@ -100,6 +96,11 @@ 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 }}
+
+ include proxy_params;
+ 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 }}