You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello every one!
I want to install authentik with traefik and proxy on my server authentik with traefik and proxy.
I have always have the same issue : proxy_authentik is always "unhealthy"
I have 4 vm : traefik, server_authentik, worker_authentik, proxy_authentik.
They all start, but proxy_authentik is always "unhealthy"
All vm are in the same network.
PROXY LOG:
Starting Debug server" listen="0.0.0.0:9900" logger=authentik.go_debugger
level=error event="Failed to fetch outpost configuration, retrying in 3 seconds"
error="Get "http://server_authentik:9000/api/v3/outposts/instances/": dial tcp 172.20.0.9:9000: connect: connection refused"
logger=authentik.outpost.ak-api-controller
level=error event="Failed to fetch outpost configuration, retrying in 3 seconds"
error="502 Bad Gateway" logger=authentik.outpost.ak-api-controller
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello every one!
I want to install authentik with traefik and proxy on my server authentik with traefik and proxy.
I have always have the same issue : proxy_authentik is always "unhealthy"
I have 4 vm : traefik, server_authentik, worker_authentik, proxy_authentik.
They all start, but proxy_authentik is always "unhealthy"
All vm are in the same network.
PROXY LOG:
Starting Debug server" listen="0.0.0.0:9900" logger=authentik.go_debugger
level=error event="Failed to fetch outpost configuration, retrying in 3 seconds"
error="Get "http://server_authentik:9000/api/v3/outposts/instances/": dial tcp 172.20.0.9:9000: connect: connection refused"
logger=authentik.outpost.ak-api-controller
level=error event="Failed to fetch outpost configuration, retrying in 3 seconds"
error="502 Bad Gateway" logger=authentik.outpost.ak-api-controller
MY CONFIG
traefik middleware.yml :
authentik:
forwardAuth:
address: "http://proxy_authentik:9000/outpost.goauthentik.io/auth/traefik"
trustForwardHeader: true
authResponseHeaders:
docker-compose.yml :
services:
postgresql_authentik: ...
redis_authentik: ...
worker_authentik: ...
command: worker
environment:
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY}
AUTHENTIK_REDIS__HOST: ${AUTHENTIK_REDIS__HOST}
AUTHENTIK_POSTGRESQL__HOST: ${AUTHENTIK_POSTGRESQL__HOST}
AUTHENTIK_POSTGRESQL__USER: ${AUTHENTIK_PG_USER}
AUTHENTIK_POSTGRESQL__DATABASE: ${AUTHENTIK_PG_DB}
AUTHENTIK_POSTGRESQL__PASSWORD: ${AUTHENTIK_PG_PASS}
AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
AUTHENTIK_REDIS__DB: "1"
user: root
volumes:
depends_on:
networks:
server_authentik:
...
environment:
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY}
AUTHENTIK_REDIS__HOST: ${AUTHENTIK_REDIS__HOST}
AUTHENTIK_POSTGRESQL__HOST: ${AUTHENTIK_POSTGRESQL__HOST}
AUTHENTIK_POSTGRESQL__USER: ${AUTHENTIK_PG_USER}
AUTHENTIK_POSTGRESQL__DATABASE: ${AUTHENTIK_PG_DB}
AUTHENTIK_POSTGRESQL__PASSWORD: ${AUTHENTIK_PG_PASS}
AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
LOGGING__FILE__ENABLED: "true"
LOGGING__FILE__FILENAME: "/var/log/authentik/server.log"
LOGGING__FILE__LEVEL: "DEBUG"
LOGGING__FILE__MAX_BYTES: 10485760
LOGGING__FILE__BACKUP_COUNT: 3
AUTHENTIK_BIND: "0.0.0.0:9000"
volumes:
normalement géré par traefik
ports:
"9000"
depends_on:
worker_authentik
postgresql_authentik
redis_authentik
labels:
"traefik.enable=true"
"traefik.http.routers.server-authentik.rule=( Host(auth.${DOMAIN})||HostRegexp({subdomain:[a-z0-9]+}.${DOMAIN}) ) && PathPrefix(/outpost.goauthentik.io/)"
"traefik.http.routers.server-authentik.entrypoints=websecure"
"traefik.http.routers.server-authentik.tls=true"
"traefik.http.routers.server-authentik.service=server-authentik-svc"
"traefik.http.services.server-authentik-svc.loadbalancer.server.port=9000"
"traefik.http.routers.server-authentik.middlewares=authentik@file" # cors@file, authentik-forwardauth@file"
auth.${DOMAIN}
)"networks:
proxy_authentik:
...
depends_on:
user: root
ports:
environment:
AUTHENTIK_HOST: "http://server_authentik:9000/"
AUTHENTIK_INSECURE: "false"
AUTHENTIK_HOST_BROWSER: "https://auth.stratoshare.net"
AUTHENTIK_LISTEN: "0.0.0.0:9000"
AUTHENTIK_TOKEN: "..."
AUTHENTIK_DEBUG: "true"
extra_hosts:
labels:
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:9000/health/live || exit 1"]
interval: 30s
timeout: 10s
retries: 3
networks:
traefik:
image: traefik:v2.10
container_name: traefik
command:
ports:
labels:
networks:
...
Beta Was this translation helpful? Give feedback.
All reactions