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

master
kaiyou 7 years ago
parent a08185911d
commit a138bed95e

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

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