Expose mail web admin UI via Traefik under /management and update file permissions
This commit is contained in:
parent
a8c4486c20
commit
a3249aa479
2 changed files with 32 additions and 9 deletions
|
|
@ -309,6 +309,10 @@ in {
|
|||
scheme = "https";
|
||||
};
|
||||
};
|
||||
# Middleware to strip the /management prefix when proxying to the mail admin
|
||||
mail-strip-management = {
|
||||
stripPrefix = { prefixes = ["/management"]; };
|
||||
};
|
||||
};
|
||||
|
||||
http.routers = {
|
||||
|
|
@ -372,6 +376,16 @@ in {
|
|||
entryPoints = ["websecure"];
|
||||
tls = {certresolver = "acme";};
|
||||
};
|
||||
|
||||
# Mail web administration UI (Stalwart management) - exposed under /management
|
||||
mail-webadmin = {
|
||||
rule = "Host(`mail.prg-radio.org`) && PathPrefix(`/management`)";
|
||||
service = "mail-webadmin";
|
||||
entryPoints = ["websecure"];
|
||||
tls = { certresolver = "acme"; };
|
||||
# strip the /management prefix before proxying to the backend
|
||||
middlewares = ["mail-strip-management"];
|
||||
};
|
||||
};
|
||||
|
||||
http.services = {
|
||||
|
|
@ -414,6 +428,13 @@ in {
|
|||
mail-jmap.loadBalancer = {
|
||||
servers = [{url = "http://10.1.1.15:8080";}];
|
||||
};
|
||||
|
||||
# Mail webadmin backend (management). Traefik will strip the /management
|
||||
# prefix and forward the remainder to the management listener on the mail
|
||||
# server which is bound to port 8081.
|
||||
mail-webadmin.loadBalancer = {
|
||||
servers = [{url = "http://10.1.1.15:8081";}];
|
||||
};
|
||||
};
|
||||
|
||||
# TCP routing for TeamSpeak
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue