From 554f08c44025b992674aefb9151e1eb84c602e24 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Mon, 12 Dec 2022 13:08:05 +0300 Subject: [PATCH] nginx-revert --- nginx.conf.sigil | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 42657e58..8de054e7 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -18,11 +18,11 @@ server { error_log {{ $.NGINX_ERROR_LOG_PATH }}; {{ if (and (eq $listen_port "80") ($.SSL_INUSE)) }} include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf; - location ^~ / { + location / { return 301 https://$host:{{ $.PROXY_SSL_PORT }}$request_uri; } {{ else }} - location ^~ / { + location / { gzip on; gzip_min_length 1100; @@ -87,7 +87,7 @@ 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 }} - location ^~ / { + location / { gzip on; gzip_min_length 1100;