Im using this image: linuxserver/letsencrypt/
And im trying to create a mailu.subfolder.conf or even better a mailu.subdomain.conf, but first i am trying to do it with a subfolder, because of the wiki Mailu — Mailu, Docker based mail server
Now my problem, i have 0 idea of how to create a reverse proxy and the wiki its confusing for me, because i have tried almost every issue open or close here talking about reverse proxy and i have nothing only this page showing:
I would like to get help and create a mailu.subfolder.conf and add it to GitHub - linuxserver/reverse-proxy-confs: These confs are pulled into our SWAG image: https://github.com/linuxserver/docker-swag to avoid getting the same errors.
i have tried too to edit a pre-configured reverse-proxy i took as example adminer:
# adminer does not require a base url setting, but the container needs to be named adminer
location /adminer {
return 301 $scheme://$host/adminer/;
}
location ^~ /adminer/ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app adminer;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
And did this (i have tried first to get working atleast /admin and them make works /webmail, but i couldnt ):
# adminer does not require a base url setting, but the container needs to be named adminer
location /admin{
return 301 $scheme://$host/admin/;
}
location ^~ /admin/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app front;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port/admin;
}
Got same error as above
And i dont know what to test more, because i have trying this 4 days, if someone could help me would be amazing, because i dont want to rent another VPS to only host Mailu.
I creating the files at:
Proxy-confs folder:
/nginx/proxy-confs