diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-20 17:52:32 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-20 18:02:19 +0800 |
commit | e870972428794f51912dfa955c6de0d712c74db1 (patch) | |
tree | 39d5a6118e31f211c3cc511d73618bca4082578e /templates/nginx/conf.d | |
parent | 75df0f7c4eaec0d50157ea8dc048241465da9c6c (diff) | |
download | crupest-e870972428794f51912dfa955c6de0d712c74db1.tar.gz crupest-e870972428794f51912dfa955c6de0d712c74db1.tar.bz2 crupest-e870972428794f51912dfa955c6de0d712c74db1.zip |
feat(cru-py): use new template format.
Diffstat (limited to 'templates/nginx/conf.d')
-rw-r--r-- | templates/nginx/conf.d/code.conf.template | 2 | ||||
-rw-r--r-- | templates/nginx/conf.d/mail.conf.template | 4 | ||||
-rw-r--r-- | templates/nginx/conf.d/root.conf.template | 6 | ||||
-rw-r--r-- | templates/nginx/conf.d/ssl.conf.template | 4 | ||||
-rw-r--r-- | templates/nginx/conf.d/timeline.conf.template | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/templates/nginx/conf.d/code.conf.template b/templates/nginx/conf.d/code.conf.template index aa70ebc..35f74d8 100644 --- a/templates/nginx/conf.d/code.conf.template +++ b/templates/nginx/conf.d/code.conf.template @@ -1,5 +1,5 @@ server { - server_name code.${CRUPEST_DOMAIN}; + server_name code.@@CRUPEST_DOMAIN@@; include common/http-listen; include common/acme-challenge; diff --git a/templates/nginx/conf.d/mail.conf.template b/templates/nginx/conf.d/mail.conf.template index 40adf28..2eb53d7 100644 --- a/templates/nginx/conf.d/mail.conf.template +++ b/templates/nginx/conf.d/mail.conf.template @@ -1,5 +1,5 @@ server { - server_name mail.${CRUPEST_DOMAIN}; + server_name mail.@@CRUPEST_DOMAIN@@; include common/https-listen; location / { @@ -17,7 +17,7 @@ server { server { - server_name mail.${CRUPEST_DOMAIN}; + server_name mail.@@CRUPEST_DOMAIN@@; include common/http-listen; include common/https-redirect; diff --git a/templates/nginx/conf.d/root.conf.template b/templates/nginx/conf.d/root.conf.template index 93675ff..8cd9174 100644 --- a/templates/nginx/conf.d/root.conf.template +++ b/templates/nginx/conf.d/root.conf.template @@ -1,5 +1,5 @@ server { - server_name ${CRUPEST_DOMAIN}; + server_name @@CRUPEST_DOMAIN@@; include common/https-listen; location / { @@ -16,7 +16,7 @@ server { proxy_pass http://git-server:80; } - location /_$CRUPEST_V2RAY_PATH { + location /_@@CRUPEST_V2RAY_PATH@@ { if ($http_upgrade != "websocket") { return 404; } @@ -28,7 +28,7 @@ server { } server { - server_name ${CRUPEST_DOMAIN}; + server_name @@CRUPEST_DOMAIN@@; include common/http-listen; include common/https-redirect; diff --git a/templates/nginx/conf.d/ssl.conf.template b/templates/nginx/conf.d/ssl.conf.template index 54205f1..181a1af 100644 --- a/templates/nginx/conf.d/ssl.conf.template +++ b/templates/nginx/conf.d/ssl.conf.template @@ -4,8 +4,8 @@ # the up-to-date file that you will need to refer to when manually updating # this file. Contents are based on https://ssl-config.mozilla.org -ssl_certificate /etc/letsencrypt/live/${CRUPEST_DOMAIN}/fullchain.pem; -ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem; +ssl_certificate /etc/letsencrypt/live/@@CRUPEST_DOMAIN@@/fullchain.pem; +ssl_certificate_key /etc/letsencrypt/live/@@CRUPEST_DOMAIN@@/privkey.pem; ssl_session_cache shared:le_nginx_SSL:10m; ssl_session_timeout 1440m; diff --git a/templates/nginx/conf.d/timeline.conf.template b/templates/nginx/conf.d/timeline.conf.template index a467594..df4edf8 100644 --- a/templates/nginx/conf.d/timeline.conf.template +++ b/templates/nginx/conf.d/timeline.conf.template @@ -1,5 +1,5 @@ server { - server_name timeline.${CRUPEST_DOMAIN}; + server_name timeline.@@CRUPEST_DOMAIN@@; include common/http-listen; include common/acme-challenge; |