[#656] Fix ACME renewal fails on redirection enabled Service

This commit is contained in:
Théophile Diot 2023-10-03 17:11:37 +02:00
parent e956e03ba0
commit 0cee41867f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -1,7 +1,9 @@
{% if REDIRECT_TO != "" +%}
{% if REDIRECT_TO_REQUEST_URI == "yes" +%}
return {{ REDIRECT_TO_STATUS_CODE }} {{ REDIRECT_TO }}$request_uri;
{% else +%}
return {{ REDIRECT_TO_STATUS_CODE }} {{ REDIRECT_TO }};
{% endif %}
location / {
{% if REDIRECT_TO_REQUEST_URI == "yes" +%}
return {{ REDIRECT_TO_STATUS_CODE }} {{ REDIRECT_TO }}$request_uri;
{% else +%}
return {{ REDIRECT_TO_STATUS_CODE }} {{ REDIRECT_TO }};
{% endif %}
}
{% endif %}