Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Move proxy spec

Daoud Clarkeead3dce37546
diff --git a/nginx.conf.sigil b/nginx.conf.sigil
index b72c8aa..0352d22 100644
--- a/nginx.conf.sigil
+++ b/nginx.conf.sigil
@@ -73,6 +73,10 @@ 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;
@@ -96,10 +100,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 }}