Use the proper HOSTNAME parameter for HTTP hostname

master
kaiyou 7 years ago
parent 4e0bd32d50
commit 17b0471e73

@ -90,7 +90,7 @@ services:
image: mailu/admin:$VERSION image: mailu/admin:$VERSION
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.frontend.rule=Host:$DOMAIN;PathPrefix:/admin/ - traefik.frontend.rule=Host:$HOSTNAME;PathPrefix:/admin/
- traefik.port=80 - traefik.port=80
restart: always restart: always
env_file: .env env_file: .env
@ -107,8 +107,8 @@ services:
image: "mailu/$WEBMAIL:$VERSION" image: "mailu/$WEBMAIL:$VERSION"
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.frontend.rule=Host:$DOMAIN;PathPrefix:/webmail/ - traefik.frontend.rule=Host:$HOSTNAME;PathPrefix:/webmail/
- traefik.root.frontend.rule=Host:$DOMAIN;Path:/;AddPrefix:/webmail/ - traefik.root.frontend.rule=Host:$HOSTNAME;Path:/;AddPrefix:/webmail/
- traefik.port=80 - traefik.port=80
restart: always restart: always
env_file: .env env_file: .env

Loading…
Cancel
Save