aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/cert-only.conf.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-20 16:32:27 +0800
committercrupest <crupest@outlook.com>2022-11-20 16:32:27 +0800
commit4a726c4a66970ddc5226538a7cca138c6526e673 (patch)
treee3c62048b3bb0e14859e1c6a978966fda87b250e /template/nginx/cert-only.conf.template
parent4067ed5b45071109203369dd9b2647d37f434123 (diff)
downloadcrupest-4a726c4a66970ddc5226538a7cca138c6526e673.tar.gz
crupest-4a726c4a66970ddc5226538a7cca138c6526e673.tar.bz2
crupest-4a726c4a66970ddc5226538a7cca138c6526e673.zip
Fix cert-only acme challenge issue.
Diffstat (limited to 'template/nginx/cert-only.conf.template')
-rw-r--r--template/nginx/cert-only.conf.template13
1 files changed, 13 insertions, 0 deletions
diff --git a/template/nginx/cert-only.conf.template b/template/nginx/cert-only.conf.template
new file mode 100644
index 0000000..08daa8a
--- /dev/null
+++ b/template/nginx/cert-only.conf.template
@@ -0,0 +1,13 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};
+
+ location / {
+ return 444;
+ }
+
+ location /.well-known/acme-challenge {
+ root /srv/acme;
+ }
+}