From 5fe53ec36e9298fd40a36877a9a5ceb791814f50 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 19 Nov 2022 13:00:13 +0800 Subject: No caddy, only nginx and certbot. --- template/nginx/https-redirect.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 template/nginx/https-redirect.conf (limited to 'template/nginx/https-redirect.conf') diff --git a/template/nginx/https-redirect.conf b/template/nginx/https-redirect.conf new file mode 100644 index 0000000..6301836 --- /dev/null +++ b/template/nginx/https-redirect.conf @@ -0,0 +1,12 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + + location / { + return 301 https://$host$request_uri; + } + + location /.well-known/acme-challenge { + root /srv/acme; + } +} -- cgit v1.2.3