aboutsummaryrefslogtreecommitdiff
path: root/template/nginx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-28 13:15:02 +0800
committercrupest <crupest@outlook.com>2022-11-28 13:15:02 +0800
commit2ab80e28dc4ee9242c4e36767363c28fa6d8cad5 (patch)
tree979f22fd361248e69d6334725ca2bc33a8a9a241 /template/nginx
parent51bee1e8891ebea829a1a5e9a6502a79e0e5b6db (diff)
parentf1e6012a7e079321aa69a6e4c65e3be9e2c212a4 (diff)
downloadcrupest-2ab80e28dc4ee9242c4e36767363c28fa6d8cad5.tar.gz
crupest-2ab80e28dc4ee9242c4e36767363c28fa6d8cad5.tar.bz2
crupest-2ab80e28dc4ee9242c4e36767363c28fa6d8cad5.zip
Merge branch 'master' of https://github.com/crupest/crupest
Diffstat (limited to 'template/nginx')
-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;
}