aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-20 16:25:33 +0800
committercrupest <crupest@outlook.com>2022-11-20 16:25:33 +0800
commitdbc5237dbbb449ac24e4001d6e4e17a178333b46 (patch)
tree9f1147555f972b5c53fe3e54b47610bc2cf25716 /template
parent79bb2c981e427d84b93d880fae5a42216f2f38d1 (diff)
downloadcrupest-dbc5237dbbb449ac24e4001d6e4e17a178333b46.tar.gz
crupest-dbc5237dbbb449ac24e4001d6e4e17a178333b46.tar.bz2
crupest-dbc5237dbbb449ac24e4001d6e4e17a178333b46.zip
Fix nginx acme challenge problem.
Diffstat (limited to 'template')
-rw-r--r--template/nginx/reverse-proxy.conf.template4
-rw-r--r--template/nginx/static-file.conf.template4
2 files changed, 8 insertions, 0 deletions
diff --git a/template/nginx/reverse-proxy.conf.template b/template/nginx/reverse-proxy.conf.template
index 3526471..b17f042 100644
--- a/template/nginx/reverse-proxy.conf.template
+++ b/template/nginx/reverse-proxy.conf.template
@@ -27,4 +27,8 @@ server {
location / {
return 301 https://$host$request_uri;
}
+
+ location /.well-known/acme-challenge {
+ root /srv/acme;
+ }
}
diff --git a/template/nginx/static-file.conf.template b/template/nginx/static-file.conf.template
index 0ada7cd..e35ccf3 100644
--- a/template/nginx/static-file.conf.template
+++ b/template/nginx/static-file.conf.template
@@ -16,4 +16,8 @@ server {
location / {
return 301 https://$host$request_uri;
}
+
+ location /.well-known/acme-challenge {
+ root /srv/acme;
+ }
}