fix: simplify Authelia config to match official blog example

Removed custom server.endpoints.authz.forward-auth configuration
and simplified session setup to match the official Authelia + Traefik
blog post example.

Key changes:
- Removed server.endpoints configuration (use defaults)
- Added session.name at top level
- Simplified session.cookies to only domain and authelia_url
- Removed custom expiration/inactivity settings

This should enable proper 302 redirects for browsers instead of
401 responses with Location headers.

Reference: https://www.authelia.com/blog/authelia--traefik-setup-guide/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-15 20:39:06 +01:00
parent be0fddf796
commit c625b898cb

View File

@@ -7,14 +7,6 @@ theme: auto
server: server:
address: "tcp://:9091" address: "tcp://:9091"
headers:
csp_template: ""
endpoints:
authz:
forward-auth:
implementation: 'ForwardAuth'
authn_strategies:
- name: 'CookieSession'
log: log:
level: info level: info
@@ -91,14 +83,10 @@ access_control:
# session secret set via environment variable: AUTHELIA_SESSION_SECRET # session secret set via environment variable: AUTHELIA_SESSION_SECRET
session: session:
name: 'authelia_session'
cookies: cookies:
- name: authelia_session - domain: 'pivoine.art'
domain: pivoine.art authelia_url: 'https://auth.pivoine.art'
authelia_url: https://auth.pivoine.art
same_site: lax
expiration: 1h
inactivity: 5m
remember_me: 1M
regulation: regulation:
max_retries: 3 max_retries: 3