Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Rever nginx conf to main version

Daoud Clarke116a8d2408db
diff --git a/nginx.conf.sigil b/nginx.conf.sigil
index 65e22a4..0d97b27 100644
--- a/nginx.conf.sigil
+++ b/nginx.conf.sigil
@@ -19,9 +19,6 @@ server {
}
}
{{ else if eq $scheme "https"}}
-
-proxy_cache_path /var/cache/nginx/{{ $.APP }} levels=1:2 keys_zone=custom_cache:1000m inactive=60m;
-
server {
listen [{{ $.NGINX_BIND_ADDRESS_IP6 }}]:{{ $listen_port }} ssl {{ if eq $.HTTP2_SUPPORTED "true" }}http2{{ else if eq $.SPDY_SUPPORTED "true" }}spdy{{ end }};
listen {{ if $.NGINX_BIND_ADDRESS_IP4 }}{{ $.NGINX_BIND_ADDRESS_IP4 }}:{{end}}{{ $listen_port }} ssl {{ if eq $.HTTP2_SUPPORTED "true" }}http2{{ else if eq $.SPDY_SUPPORTED "true" }}spdy{{ end }};
@@ -39,11 +36,9 @@ 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;
- add_header 'X-Proxy-Cache' 'Test';
-
location / {
+
## Start CORS here. See http://enable-cors.org/server_nginx.html for comments
if ($request_method = 'OPTIONS') {