aboutsummaryrefslogtreecommitdiff
path: root/services/templates/nginx/conf.d
diff options
context:
space:
mode:
Diffstat (limited to 'services/templates/nginx/conf.d')
-rw-r--r--services/templates/nginx/conf.d/mail.conf.template4
-rw-r--r--services/templates/nginx/conf.d/root.conf.template8
2 files changed, 12 insertions, 0 deletions
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;