mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-13 16:43:14 -07:00
Create mailu subfolder
This will need some disscusion, because i have edited the default docker-compose to make it works, but maybe those edit arent need it.
This commit is contained in:
parent
6673802fab
commit
528fc47769
1 changed files with 30 additions and 0 deletions
30
mailu.subfolder.conf
Normal file
30
mailu.subfolder.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
# This config have been tested with "TLS_FLAVOR=mail"
|
||||
|
||||
location /admin{
|
||||
return 301 $scheme://$host/admin/;
|
||||
proxy_redirect https://localhost https://DOMAIN.TDL; ## To avoid errors https://mailu.io/master/reverse.html
|
||||
}
|
||||
location ^~ /admin/ {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app front;
|
||||
set $upstream_port 80;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
proxy_redirect https://localhost https://DOMAIN.TDL; ## To avoid errors https://mailu.io/master/reverse.html
|
||||
|
||||
}
|
||||
location /webmail{
|
||||
return 301 $scheme://$host/webmail/;
|
||||
proxy_redirect https://localhost https://DOMAIN.TDL; ## To avoid errors https://mailu.io/master/reverse.html
|
||||
}
|
||||
location ^~ /webmail/ {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app front;
|
||||
set $upstream_port 80;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
proxy_redirect https://localhost https://DOMAIN.TDL; ## To avoid errors https://mailu.io/master/reverse.html
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue