mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Use docker links for nginx to resolve properly
This commit is contained in:
parent
2d64ada2d6
commit
d7b5b08d2d
@ -9,6 +9,9 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
links:
|
||||
- webmail
|
||||
- admin
|
||||
volumes:
|
||||
- /data/certs:/certs
|
||||
|
||||
|
@ -33,15 +33,11 @@ http {
|
||||
}
|
||||
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
set $webmail_backend "http://webmail";
|
||||
proxy_pass $webmail_backend;
|
||||
proxy_pass http://webmail;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
resolver 127.0.0.11;
|
||||
set $admin_backend "http://admin";
|
||||
proxy_pass $admin_backend;
|
||||
proxy_pass http://admin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user