Skip to content
Snippets Groups Projects
Commit 802673c9 authored by Lars Beckers's avatar Lars Beckers
Browse files

add acmetool handling to nginx config

parent 5c2445df
Branches
No related tags found
No related merge requests found
---
rt_enable_acmetool: False
......@@ -39,10 +39,24 @@ server {
fastcgi_param SERVER_NAME $server_name;
fastcgi_pass unix:///var/run/rt4-fcgi.sock;
}
{% if rt_enable_acmetool %}
location /.well-known/acme-challenge {
alias /var/lib/acme/webroot;
try_files $uri =404;
}
{% endif %}
}
server {
listen 80;
server_name {{rt_webdomain}};
{% if rt_enable_acmetool %}
location /.well-known/acme-challenge {
alias /var/lib/acme/webroot;
try_files $uri =404;
}
{% endif %}
location / {
return 301 https://$server_name$request_uri;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment