aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 18:02:53 +0800
committerGitHub <noreply@github.com>2022-11-27 18:02:53 +0800
commitfb9cfa1491ed4f3974ec189a420e9ee06ffa0f53 (patch)
treec0d0b8c6cefb105fa9d45b6dfe10fc13e2b335ac /template
parentaa65b89f546dc03a86f344db4cf135a59b7d8435 (diff)
downloadcrupest-fb9cfa1491ed4f3974ec189a420e9ee06ffa0f53.tar.gz
crupest-fb9cfa1491ed4f3974ec189a420e9ee06ffa0f53.tar.bz2
crupest-fb9cfa1491ed4f3974ec189a420e9ee06ffa0f53.zip
Fix redirect.conf.template
Diffstat (limited to 'template')
-rw-r--r--template/nginx/redirect.conf.template10
1 files changed, 7 insertions, 3 deletions
diff --git a/template/nginx/redirect.conf.template b/template/nginx/redirect.conf.template
index 5b6b101..8d6d8fa 100644
--- a/template/nginx/redirect.conf.template
+++ b/template/nginx/redirect.conf.template
@@ -3,7 +3,9 @@ server {
listen [::]:443 ssl http2;
server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};
- return 301 ${CRUPEST_NGINX_URL}$request_uri;
+ location / {
+ return 301 ${CRUPEST_NGINX_URL}$request_uri;
+ }
}
server {
@@ -11,9 +13,11 @@ server {
listen [::]:80;
server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};
+ location / {
+ return 301 ${CRUPEST_NGINX_URL}$request_uri;
+ }
+
location /.well-known/acme-challenge {
root /srv/acme;
}
-
- return 301 ${CRUPEST_NGINX_URL}$request_uri;
}