NOSSL_SERVER_NAME

This commit is contained in:
Florian du Garage Num 2023-12-16 14:20:48 +01:00
parent 26b8e90376
commit a2229f4683

View File

@ -14,7 +14,7 @@ server {
{{ if (and (eq $listen_port "80") ($.SSL_INUSE)) }}
include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
location / {
return 301 https://{{SSL_SERVER_NAME}}:{{ $.PROXY_SSL_PORT }}$request_uri;
return 301 https://{{NOSSL_SERVER_NAME}}:{{ $.PROXY_SSL_PORT }}$request_uri;
}
{{ else }}
location / {