Hi
I cannot proxy grafana with Traefik , got ERR_TOO_MANY_REDIRECTS
It's got certificate correct but cannot got this error when move to /login page
version: "3.7"
services:
traefik:
image: traefik:v2.1
container_name: traefik
restart: always
command:
- --api.insecure=true
- --providers.docker
- --providers.docker.exposedByDefault=false
- --providers.docker.swarmMode=false
- --providers.docker.domain=mylaptop.com
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
- /media/MediaHDD/mediahub/traefik/data/:/etc/traefik/
- /media/MediaHDD/mediahub/traefik/users:/users
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.mylaptop.com`)"
- "traefik.http.routers.traefik.middlewares=traefik-auth"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.middlewares.traefik-auth.basicauth.usersfile=/users"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.traefik.middlewares=https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik.mylaptop.com`)"
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certresolver=htpc"
- "traefik.http.routers.traefik-secure.service=api@internal"
grafana:
image: grafana/grafana:master
container_name: grafana
#ports:
# - 3010:3000
command:
- user 1000
environment:
- PUID=1000
- PGID=1001
- GF_SERVER_ROOT_URL="grafana.mylaptop.com"
volumes:
- /media/MediaHDD/mediahub/grafana/:/var/lib/grafana/
- /etc/localtime:/etc/localtime:ro
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.http.routers.grafana-secure.entrypoints=https"
- "traefik.http.routers.grafana-secure.rule=Host(`grafana.mylaptop.com`)"
#- "traefik.http.routers.grafana-secure.middlewares=traefik-auth"
- "traefik.http.routers.grafana-secure.tls=true"
- "traefik.http.routers.grafana-secure.tls.certresolver=htpc"
entryPoints:
http:
address: ":80"
https:
address: ":443"
api:
dashboard: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
watch: true
exposedbydefault: false
file:
watch: true
filename: "/etc/traefik/external.yaml"
certificatesResolvers:
htpc:
acme:
email: "myemail@outlook.com"
storage: "/etc/traefik/acme.json"
httpChallenge:
entryPoint: http
log:
level: DEBUG