acme challenges must be answered by default_server

The challenge must be answered even before app nginx config
is available.
This commit is contained in:
Girish Ramakrishnan
2017-10-28 23:30:12 -07:00
parent acc90e16d7
commit 6dd70c0ef2
3 changed files with 8 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ server {
<% if (vhost) { -%>
server_name <%= vhost %>;
<% } else { -%>
# IP based access. TODO: match the IPv6 address
# IP based access from collectd or initial cloudron setup. TODO: match the IPv6 address
server_name "~^\d+\.\d+\.\d+\.\d+$";
# collectd
@@ -24,12 +24,6 @@ server {
allow 127.0.0.1;
deny all;
}
# acme challenges
location /.well-known/acme-challenge/ {
default_type text/plain;
alias /home/yellowtent/platformdata/acme/;
}
<% } -%>
location / {