aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/server.json
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-04 00:16:15 +0800
committercrupest <crupest@outlook.com>2024-11-04 00:16:15 +0800
commitc699d400208d81430cf03b8d1fcd46a0a1eef19b (patch)
tree749e20832dc2140ea4a51a5472ddb4f1338d0c17 /template/nginx/server.json
parent9db9737bc653379260164d616903fcd4ed400eb5 (diff)
downloadcrupest-c699d400208d81430cf03b8d1fcd46a0a1eef19b.tar.gz
crupest-c699d400208d81430cf03b8d1fcd46a0a1eef19b.tar.bz2
crupest-c699d400208d81430cf03b8d1fcd46a0a1eef19b.zip
fix(roundcubemail): fix reverse prpxy.
Diffstat (limited to 'template/nginx/server.json')
-rw-r--r--template/nginx/server.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/template/nginx/server.json b/template/nginx/server.json
index a338c4f..183bd77 100644
--- a/template/nginx/server.json
+++ b/template/nginx/server.json
@@ -17,6 +17,11 @@
"upstream": "forgejo:3000"
},
{
+ "type": "reverse-proxy",
+ "subdomain": "mail",
+ "upstream": "roundcubemail:80"
+ },
+ {
"type": "static-file",
"subdomain": "blog",
"root": "/srv/blog"
@@ -25,6 +30,10 @@
"type": "redirect",
"subdomain": "github",
"url": "https://github.com/crupest"
+ },
+ {
+ "type": "cert-only",
+ "subdomain": "mail"
}
]
}