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