Commit 5f375851 authored by ale's avatar ale

Do not set up acme-challenge forwarding if the acme service is not running

parent 992a033f
Pipeline #1326 passed with stage
in 6 minutes and 4 seconds
......@@ -2,11 +2,15 @@ server {
listen [::]:80 default_server ipv6only=off;
server_name _;
{# Only enable this if the 'acme' service is defined,
or the basic tests will fail #}
{% if 'acme' in services %}
# Handle ACME challenge verification.
location /.well-known/acme-challenge {
include /etc/nginx/snippets/proxy.conf;
proxy_pass http://acme.{{ domain }};
}
{% endif %}
# Redirect everything else to HTTPS.
location / {
......
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