config:authelia-npm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| config:authelia-npm [2026/03/18 16:38] – Wuff | config:authelia-npm [2026/03/19 22:34] (current) – [Redis for Authelia session] Wuff | ||
|---|---|---|---|
| Line 464: | Line 464: | ||
| {{.: | {{.: | ||
| + | |||
| + | Make sure to remove the advanced nginx config in NPM and enable websocket support in NPM. | ||
| + | The OIDC integration replaces the proxy authelia protection. | ||
| + | |||
| + | ===== Redis for Authelia session ===== | ||
| + | |||
| + | Authelia stores session data in memory by default. This means whenever the container or server is restarted, all users will have to log in again as the session data is lost. To store data across restarts, Redis can be used as in memory database and cache. | ||
| + | |||
| + | Authelia docker compose file should be adjusted as following: | ||
| + | <code yaml> | ||
| + | name: authelia | ||
| + | services: | ||
| + | authelia: | ||
| + | image: authelia/ | ||
| + | container_name: | ||
| + | restart: unless-stopped | ||
| + | volumes: | ||
| + | - / | ||
| + | ports: | ||
| + | - 6091:9091 | ||
| + | environment: | ||
| + | - TZ=Europe/ | ||
| + | depends_on: | ||
| + | redis: | ||
| + | condition: service_started | ||
| + | redis: | ||
| + | image: redis: | ||
| + | container_name: | ||
| + | command: > | ||
| + | redis-server | ||
| + | --appendonly yes | ||
| + | --appendfsync everysec | ||
| + | --save 900 1 | ||
| + | --save 300 10 | ||
| + | --save 60 10000 | ||
| + | volumes: | ||
| + | - / | ||
| + | restart: unless-stopped | ||
| + | </ | ||
| + | |||
| + | And in / | ||
| + | < | ||
| + | session: | ||
| + | redis: | ||
| + | host: authelia-redis | ||
| + | port: 6379 | ||
| + | </ | ||
| + | |||
| + | Then stop and fully restart the authelia container. | ||
config/authelia-npm.1773851892.txt.gz · Last modified: by Wuff