nginx-revert

This commit is contained in:
tonyrewin 2022-12-12 13:08:05 +03:00
parent 642207116f
commit 554f08c440

View File

@ -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;