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:
vinanrra 2020-04-24 11:51:33 +02:00 committed by GitHub
parent 6673802fab
commit 528fc47769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
mailu.subfolder.conf Normal file
View 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
}