Hello,
I am trying to setup a self-hosted Ghost blog system using docker + Traefik on https://ghost.labonnefabrique.fr. As Ghost will be used headless, I just need the admin part located at https://ghost.labonnefabrique.fr/ghost.
To simplify the navigation I would like to reroute ghost.labonnefabrique.fr/ to ghost.labonnefabrique.fr/ghost
I am setting up the traefik part with the following docker labels:
ghost:
...
labels:
- traefik.enable=true
- traefik.http.routers.ghost.rule=Host(`ghost.labonnefabrique.fr`)
- traefik.http.middlewares.add-ghost.addPrefix.prefix=/ghost
- traefik.http.routers.ghost.middlewares=add-ghost
- traefik.http.routers.ghost.entrypoints=websecure
- traefik.http.routers.ghost.tls.certresolver=mydnschallenge
When reaching https://ghost.labonnefabrique.fr/, an error is returned
Server was unreachable
Looking to the console errors,
- GET https://ghost.labonnefabrique.fr/ghost/ net::ERR_TOO_MANY_REDIRECTS
- the page is looking to its js files at https://ghost.labonnefabrique.fr/ and not at https://ghost.labonnefabrique.fr/ghost/
According to the Traefik dashboard, everythins is fine. What is wrong with my configuration?
I also tried
ghost:
...
labels:
- traefik.enable=true
- traefik.http.routers.ghost.rule=Host(`ghost.labonnefabrique.fr`) && AddPrefix(`/ghost`)
- traefik.http.routers.ghost.entrypoints=websecure
- traefik.http.routers.ghost.tls.certresolver=mydnschallenge
but it's not working att all.
thanks,
Nicolas