From a138bed95e1fd0192b0b14a26d57bd32371acde6 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sat, 16 Sep 2017 18:12:21 +0200 Subject: [PATCH] Fix the docker-compose.yml so that / is handled by the admin container --- admin/mailu/__init__.py | 2 +- docker-compose.yml.dist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/mailu/__init__.py b/admin/mailu/__init__.py index 43717181..d6f6a457 100644 --- a/admin/mailu/__init__.py +++ b/admin/mailu/__init__.py @@ -73,4 +73,4 @@ app.register_blueprint(admin.app, url_prefix='/admin') @app.route("/") def index(): - return flask.redirect("/webmail") + return flask.redirect("/webmail/") diff --git a/docker-compose.yml.dist b/docker-compose.yml.dist index 0dfb19ae..103fdcaa 100644 --- a/docker-compose.yml.dist +++ b/docker-compose.yml.dist @@ -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