fix-nginx

This commit is contained in:
tonyrewin 2022-12-12 12:42:35 +03:00
parent b4c380ec6c
commit 2a9703bb9d

View File

@ -18,11 +18,11 @@ server {
error_log {{ $.NGINX_ERROR_LOG_PATH }}; error_log {{ $.NGINX_ERROR_LOG_PATH }};
{{ if (and (eq $listen_port "80") ($.SSL_INUSE)) }} {{ if (and (eq $listen_port "80") ($.SSL_INUSE)) }}
include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf; include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
location / { location ^~ / {
return 301 https://$host:{{ $.PROXY_SSL_PORT }}$request_uri; return 301 https://$host:{{ $.PROXY_SSL_PORT }}$request_uri;
} }
{{ else }} {{ else }}
location / { location ^~ / {
gzip on; gzip on;
gzip_min_length 1100; gzip_min_length 1100;
@ -87,7 +87,7 @@ server {
keepalive_timeout 70; keepalive_timeout 70;
{{ if and (eq $.SPDY_SUPPORTED "true") (ne $.HTTP2_SUPPORTED "true") }}add_header Alternate-Protocol {{ $.PROXY_SSL_PORT }}:npn-spdy/2;{{ end }} {{ 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 on;
gzip_min_length 1100; gzip_min_length 1100;