Open eoli3n opened 4 years ago
I've got the same issue!!!
I did change my configuration to match requirements : no subdirs but one fqdn by service.
I also wanted to run swarmprom's Web UIs in a sub-path (using Traefik as a reverse proxy). Here's what I had to do:
--web.external-url=/prometheus/
to the prometheus command (in docker-compose.yml)traefik...rule="Host('example.com') && PathPrefix('/prometheus/')"
)
(or if you are using Traefik v1: traefik...rule=Host:example.com;PathPrefix:/prometheus/
)GF_SERVER_ROOT_URL=https://example.com/grafana/
environment variable to grafana service in docker-compose.ymlPathPrefixStrip('/grafana/')
See my post here for more details: https://blog.cubieserver.de/2020/configure-prometheus-on-a-sub-path-behind-reverse-proxy/
I want to be able to use swarmprom behind reverse proxy. First problem is grafana, when i query https://supervision.infra.domain.fr/grafana I get
I found solution here https://grafana.com/docs/grafana/latest/installation/behind_proxy/ I need to be able to change
root_url
varIs there a way to do this ? I created a config file
defaults.ini
bind on/usr/share/grafana/conf/defaults.ini
And changed value asBut i still get the same msg
Here my complete docker-stack file