Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
- Launch docker container using official Chronograf image
- Launch Traefik container to be used as reverse proxy
- Setup reverse proxy for Chronograf
Expected behavior:
Chronograf opens in a web browser using address “https://mydomain.com/chronograf”
Actual behavior:
A blank page opens, see screenshot
Environment info:
- Chronograf version:
chronograf:1.8.7 official docker image from docker hub.
Config:
-
/etc/default/chronograf
file mounted inside the container with the following content:
CHRONOGRAF_OPTS=--basepath /chronograf
- Traefik tags for Chronograf docker container
tags = [
"traefik.enable=true",
"traefik.http.routers.chronograf-https.tls=true",
"traefik.http.routers.chronograf-https.rule=Host(`{{base_url}}`) && PathPrefix(`/chronograf`)",
"traefik.http.routers.chronograf-https.entrypoints=websecure",
"traefik.http.routers.chronograf-https.middlewares=chronograf-auth",
# Basic auth
"traefik.http.middlewares.chronograf-auth.basicauth.users={{basic_auth_htpasswd}}",
]
When I empty the /etc/default/chronograf
file and change rule
to
"traefik.http.routers.chronograf-https.rule=Host(`{{base_url}}`)",
then page loads up properly when I try just the address https://mydomain.com without any paths, see screenshot
So this means my environment is good and it is just a matter of either Traefik tags being wrong for Chronograf or Chronograf docker container being misconfigured. What may I be doing wron