From 0874dd5d5652f7d710d98329ba111fd69e7d8fce Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 24 Feb 2025 02:18:20 +0800 Subject: feat(www): YEAH! --- services/templates/nginx/conf.d/mail.conf.template | 4 ++++ services/templates/nginx/conf.d/root.conf.template | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'services/templates/nginx') diff --git a/services/templates/nginx/conf.d/mail.conf.template b/services/templates/nginx/conf.d/mail.conf.template index 2eb53d7..c115c2e 100644 --- a/services/templates/nginx/conf.d/mail.conf.template +++ b/services/templates/nginx/conf.d/mail.conf.template @@ -2,6 +2,10 @@ server { server_name mail.@@CRUPEST_DOMAIN@@; include common/https-listen; + location = /robots.txt { + root /srv/mail; + } + location / { include common/proxy-common; proxy_pass http://roundcubemail:80/; diff --git a/services/templates/nginx/conf.d/root.conf.template b/services/templates/nginx/conf.d/root.conf.template index 3ea97d9..dd223c2 100644 --- a/services/templates/nginx/conf.d/root.conf.template +++ b/services/templates/nginx/conf.d/root.conf.template @@ -17,6 +17,14 @@ server { proxy_pass http://git-server:80; } + location = /github { + return 301 @@CRUPEST_GITHUB@@; + } + + location = /github/ { + return 301 @@CRUPEST_GITHUB@@; + } + location /_@@CRUPEST_V2RAY_PATH@@ { if ($http_upgrade != "websocket") { return 404; -- cgit v1.2.3