Verified Commit 19729789 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧

Without a location nginx will always return

Without a location block, nginx always executes the return block causing
a 302 which makes certbot unable to renew as it follows redirects.
parent 498d5304
Pipeline #5378 passed with stage
in 46 seconds
......@@ -15,6 +15,8 @@ server {
include snippets/letsencrypt.conf;
return {{ redirect.type }} {{ redirect.to }};
location / {
return {{ redirect.type }} {{ redirect.to }};
}
}
{% endfor %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment