An open source, non-profit web search engine
Only use caching for https
Daoud Clarkefb62a7f7c3e9
diff --git a/nginx.conf.sigil b/nginx.conf.sigilindex 13e369a..2c83c34 100644--- a/nginx.conf.sigil+++ b/nginx.conf.sigil@@ -4,8 +4,6 @@{{ $listen_port := index $port_map_list 1 }}{{ $upstream_port := index $port_map_list 2 }}-proxy_cache_path /var/cache/nginx/{{ $.APP }} levels=1:2 keys_zone=custom_cache:1000m inactive=60m;-{{ if eq $scheme "http" }}server {listen [{{ $.NGINX_BIND_ADDRESS_IP6 }}]:{{ $listen_port }};@@ -21,6 +19,9 @@ 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 }};