diff options
| author | crupest <crupest@outlook.com> | 2022-11-28 13:15:02 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-28 13:15:02 +0800 |
| commit | 860edd743f8798cd4c7f8aa501371beac4500776 (patch) | |
| tree | 979f22fd361248e69d6334725ca2bc33a8a9a241 /template/nginx | |
| parent | 2ea83d8aadfa71fa46eb800bc57ac0cd724b8fe1 (diff) | |
| parent | 4002f9ea3946372105e729e809b588470d818c76 (diff) | |
| download | crupest-860edd743f8798cd4c7f8aa501371beac4500776.tar.gz crupest-860edd743f8798cd4c7f8aa501371beac4500776.tar.bz2 crupest-860edd743f8798cd4c7f8aa501371beac4500776.zip | |
Merge branch 'master' of https://github.com/crupest/crupest
Diffstat (limited to 'template/nginx')
| -rw-r--r-- | template/nginx/redirect.conf.template | 10 |
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; } |
