ChristianLempa / videos

This is my video documentation. Here you'll find code-snippets, technical documentation, templates, command reference, and whatever is needed for all my YouTube Videos.
MIT License
904 stars 331 forks source link

Question, maybe a tweak to instructions - Traefik/Authentik Video - accessing authentik over http rather than https #67

Closed HeneryH closed 1 month ago

HeneryH commented 1 month ago

Thank you so much for the demo you recorded. I never could have gotten this far without it.

I noticed early in my testing that I could only access Authentik using its https port (7443 in my case since 8443 was taken by Portainer). Port 7000 (to keep with the 7xxx theme being Authentik) didn't connect. It was no problem in my early testing as the internally signed certificate gave me a sense of progress.

But now I am trying to use Traefik's LE certs which will then route to the http port of Authentic, which doesn't work form me.

Have you ever seen Authentik fail to accept http connection requests before? Maybe some setting to allow less secure? I used the two port settings and env variables to set them. My https works but no my http: COMPOSE_PORT_HTTP=7080 COMPOSE_PORT_HTTPS=7443

server: image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.8.3} container_name: authentik-server restart: unless-stopped command: server environment: AUTHENTIK_REDISHOST: redis AUTHENTIK_POSTGRESQL__HOST: postgresql AUTHENTIK_POSTGRESQLUSER: ${PG_USER:-authentik} AUTHENTIK_POSTGRESQLNAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQLPASSWORD: ${PG_PASS} AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:?error} volumes:

HeneryH commented 1 month ago

Sorry, I can never get my code to format properly in github posts.

I saw one potential traefik mistake but this is not the root problem.

If a container exposes multiple ports, then you must manually specify which port Traefik should use for communication by using the label traefik.http.services..loadbalancer.server.port (Read more on this label in the dedicated section in routing).

server: image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.8.3} container_name: authentik-server restart: unless-stopped command: server environment: AUTHENTIK_REDISHOST: redis AUTHENTIK_POSTGRESQL__HOST: postgresql AUTHENTIK_POSTGRESQLUSER: ${PG_USER:-authentik} AUTHENTIK_POSTGRESQLNAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQLPASSWORD: ${PG_PASS} AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:?error} volumes:

HeneryH commented 1 month ago

Temporarily closing while I investigate more.