1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Fix the docker-compose.yml so that / is handled by the admin container

This commit is contained in:
kaiyou 2017-09-16 18:12:21 +02:00
parent a08185911d
commit a138bed95e
2 changed files with 2 additions and 2 deletions

View File

@ -73,4 +73,4 @@ app.register_blueprint(admin.app, url_prefix='/admin')
@app.route("/")
def index():
return flask.redirect("/webmail")
return flask.redirect("/webmail/")

View File

@ -91,6 +91,7 @@ services:
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:$HOSTNAME;PathPrefix:/admin/
- traefik.root.frontend.rule=Host:$HOSTNAME;Path:/
- traefik.port=80
restart: always
env_file: .env
@ -108,7 +109,6 @@ services:
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:$HOSTNAME;PathPrefix:/webmail/
- traefik.root.frontend.rule=Host:$HOSTNAME;Path:/;AddPrefix:/webmail/
- traefik.port=80
restart: always
env_file: .env