diff --git a/docker-compose.yml b/docker-compose.yml index 89e9e41..0db856d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ - services: authentik_postgresql: environment: @@ -40,6 +39,12 @@ services: array: aliases: - auth-core + labels: + # 1. Define the Middleware (Forces HTTPS protocol header) + - "traefik.http.middlewares.authentik-force-https.headers.customrequestheaders.X-Forwarded-Proto=https" + # 2. Attach it to Coolify's generated Router + # (Note: We usually append 'gzip' as Coolify adds it by default, ensuring we don't remove it) + - "traefik.http.routers.https-0-j88cw4skoowsccs4oc44g0wg-authentik_server.middlewares=gzip,authentik-force-https" authentik_worker: command: worker depends_on: