lmenezes / cerebro

MIT License
5.51k stars 714 forks source link

Cerebro and Traefik #317

Open m4dm4rtig4n opened 6 years ago

m4dm4rtig4n commented 6 years ago

Hi,

I try to redirect http://URL/cerebro to my cerebro container with traefik, but when i change basePath to "/cerebro", i get a white page after login with title page "{{title}}"...

Traefik configuration :

        traefik.frontend.entryPoints: http,https
        traefik.frontend.rule: PathPrefix:/cerebro
        traefik.docker.network: traefik_traefik_net
        traefik.port: 9000
        traefik.enable: 'true'
        traefik.backend.loadbalancer.method: drr

I have try other configuration: basePath = "/cerebro/"

        traefik.frontend.entryPoints: http,https
        traefik.frontend.rule: PathPrefix:/cerebro/
        traefik.docker.network: traefik_traefik_net
        traefik.port: 9000
        traefik.enable: 'true'
        traefik.backend.loadbalancer.method: drr

But Cerebro respond only with ending slash (http://URL/cerebro/) not with http://URL/cerebro :/

Any idea ?

wu3rstle commented 5 years ago

@m4dm4rtig4n Have you tried a mix of both?

basePath = "/cerebro/"

traefik.frontend.rule: PathPrefix:/cerebro
Reiner030 commented 4 years ago

The problem seems that the basePath within Cerebro confguration is the path used for the filesystem but not the virtual URL path?

I tested both variants with same error GET / not found or so in both variants behind Apache 2.4 😢 The problem is with basePath=/ that frontend /cerebro/ call with / as background path works nearly fine but requests for /css/ and /js/files weren't prepended with correct subfolder /cerebro/.