Syncthing removal (was already decided, now fully removed): - roles/base/tasks/firewall.yml: remove 3 UFW rules (ports 22000/21027) - inventory/group_vars/all/main.yml: remove domain_sync, domain_mon, syncthing_basic_auth_htpasswd - roles/services/templates/env.j2: remove DOMAIN_SYNC - roles/services/templates/authelia/configuration.yml.j2: remove Syncthing 2FA rule - roles/services/tasks/directories.yml: remove syncthing/config and syncthing/data dirs - roles/services/defaults/main.yml: remove syncthing_image - roles/services/tasks/main.yml: remove syncthing image pull Security hardening: - inventory/group_vars/all/main.yml: move cloudflare_zone_id to vault - inventory/group_vars/all/vault.yml: add vault_cloudflare_zone_id .gitignore improvements: - add *.env, acme.json, *.log, editor dirs, venv, temp files Documentation (new): - docs/STATUS.md: all services, servers, known issues - docs/BACKLOG.md: prioritized task list, done/todo - docs/DECISIONS.md: architecture decisions and rationale - CLAUDE.md: rewritten with read-first docs, rules, full arch reference Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
72 lines
1.4 KiB
Django/Jinja
72 lines
1.4 KiB
Django/Jinja
# Generated by Ansible — do not edit manually
|
|
# Authelia v4 configuration
|
|
|
|
theme: dark
|
|
|
|
server:
|
|
host: 0.0.0.0
|
|
port: 9091
|
|
|
|
log:
|
|
level: warn
|
|
|
|
jwt_secret: "{{ authelia_jwt_secret }}"
|
|
|
|
default_redirection_url: "https://{{ domain_auth }}"
|
|
|
|
session:
|
|
name: authelia_session
|
|
secret: "{{ authelia_session_secret }}"
|
|
expiration: 12h
|
|
inactivity: 30m
|
|
domain: "{{ domain_base }}"
|
|
redis:
|
|
host: authelia-redis
|
|
port: 6379
|
|
|
|
regulation:
|
|
max_retries: 3
|
|
find_time: 2m
|
|
ban_time: 10m
|
|
|
|
storage:
|
|
encryption_key: "{{ authelia_storage_key }}"
|
|
local:
|
|
path: /config/db.sqlite3
|
|
|
|
notifier:
|
|
disable_startup_check: true
|
|
filesystem:
|
|
filename: /config/notifications.txt
|
|
|
|
authentication_backend:
|
|
password_reset:
|
|
disable: false
|
|
file:
|
|
path: /config/users.yml
|
|
password:
|
|
algorithm: argon2id
|
|
iterations: 3
|
|
memory: 65536
|
|
parallelism: 4
|
|
key_length: 32
|
|
salt_length: 16
|
|
|
|
access_control:
|
|
default_policy: deny
|
|
rules:
|
|
# Authelia portal itself — всегда доступен
|
|
- domain: "{{ domain_auth }}"
|
|
policy: bypass
|
|
|
|
# Traefik dashboard — только admin, требует 2FA
|
|
- domain: "{{ domain_traefik }}"
|
|
policy: two_factor
|
|
subject: "group:admins"
|
|
|
|
# Plane god-mode — только admin, требует 2FA
|
|
- domain: "{{ domain_plane }}"
|
|
resources:
|
|
- "^/god-mode/.*$"
|
|
policy: two_factor
|
|
subject: "group:admins"
|