settingupmail
This commit is contained in:
@@ -87,9 +87,28 @@ mail.home.{$DOMENESHOP_DNS} {
|
||||
import dns-tls
|
||||
import remote-ip
|
||||
handle @internal {
|
||||
reverse_proxy mail-front:80
|
||||
reverse_proxy https://mailu-front:443 {
|
||||
header_up Host mail.home.{$DOMENESHOP_DNS}
|
||||
header_up X-Forwarded-Host mail.home.{$DOMENESHOP_DNS}
|
||||
header_up X-Forwarded-Proto https
|
||||
header_up X-Real-IP {remote_host}
|
||||
header_down Location https://mailu-front/ https://mail.home.{$DOMENESHOP_DNS}/
|
||||
header_down Location https://mailu-front https://mail.home.{$DOMENESHOP_DNS}
|
||||
transport http {
|
||||
tls_server_name mail.tvheggland.no
|
||||
}
|
||||
}
|
||||
|
||||
# reverse_proxy mailu-front:80
|
||||
}
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
|
||||
mail.tvheggland.no {
|
||||
import common-auth
|
||||
import remote-ip
|
||||
handle @internal {
|
||||
respond "mail endpoint" 200
|
||||
}
|
||||
}
|
||||
import sites/*.caddy
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ services:
|
||||
- proxy_net
|
||||
- edge_net
|
||||
- proxy_swarm
|
||||
# - dns_net
|
||||
|
||||
networks:
|
||||
proxy_net:
|
||||
@@ -24,6 +25,8 @@ networks:
|
||||
external: true
|
||||
proxy_swarm:
|
||||
external: true
|
||||
# dns_net:
|
||||
# external: true
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
|
||||
Reference in New Issue
Block a user