update: add all nginx config for each active services

This commit is contained in:
2026-07-15 14:11:44 +02:00
parent 7768703437
commit cd8396f763
18 changed files with 1038 additions and 72 deletions
+139 -72
View File
@@ -1,95 +1,162 @@
theme: grey
log:
file_path: /config/authelia.log
keep_stdout: true
# Stockage (fichier SQLite local) suffisant pour commencer
storage:
local:
path: /config/db.sqlite3
local:
path: /config/db.sqlite3
# Base de données des utilisateurs (fichier)
authentication_backend:
file:
path: /config/users.yml
file:
path: /config/users.yml
# Accès par défaut (à ajuster selon tes besoins)
access_control:
default_policy: deny
rules:
- domain: "paperless.crenam.space"
policy: one_factor
- domain: "git.crenam.space"
policy: one_factor
- domain: "task.crenam.space"
policy: one_factor
- domain: "salon.home"
default_policy: 'one_factor'
rules:
- domain:
- "paperless.crenam.space"
- "git.crenam.space"
- "task.crenam.space"
- "seafile.crenam.space"
policy: one_factor
# Session et cookie
session:
cookies:
- name: authelia_session
domain: crenam.space
authelia_url: "https://auth.crenam.space"
default_redirection_url: "https://dashboard.crenam.space"
expiration: '16h'
cookies:
- name: authelia_session
domain: crenam.space
authelia_url: "https://auth.crenam.space"
default_redirection_url: "https://dashboard.crenam.space"
expiration: "16h"
remember_me: "1 month"
# sercret
# Notifications (par mail on laisse vide pour le moment, pas de SMTP)
notifier:
filesystem:
filename: /config/notifications.yml
disable_startup_check: true
filesystem:
filename: /config/notifications.yml
# ban regulation if attempt to penetrate the network without authorization
regulation:
modes:
- "user"
max_retries: 5
ban_time: '10m'
find_time: '2m'
# identity_validation:
# definitions:
# user_attributes:
# username
# email
# nickname
# if needed, it will be lldap
# ldap: http://localhost:111
#
# clients
# identity_providers:
## The other portions of the mandatory OpenID Connect 1.0 configuration go here.
## See: https://www.authelia.com/c/oidc
# oidc:
# jwks:
# - key: {{ secret "/secrets/private.pem" | mindent 10 "|" | msquote }}
# certificate_chain: {{ secret "/secrets/public.crt" | mindent 10 "|" | msquote }}
# oidc:
# # hmac secret is used for OAuth2 tokens
# hmac_secret:
# clients:
# # jwks issuer is needed to configure multiple jwk. Must be based on RS256 algorithm
# # or on 2048 bit RSA/PA key
# jwks:
# # recommended not to configure this
# - key_id: {{ secret "/secrets/private.pem" | mindent 10 "|" | msquote }}
# # key algorithm
# algorithm: "RS256"
# use: "sig"
# key: |
# -----BEGIN PRIVATE KEY-----
# -----END PRIVATE KEY-----
# # Optionnally matchin certificate in PEM DER form
# certificate_chain: {{ secret "/secrets/public.crt" | mindent 10 "|" | msquote }}
# # the signing algorithm used for signing discovery and metdata responses
# # most client ignore this so set it to none
# discovery_signed_response_alg: 'none'
# # the signing key used for signing discovery and metdata responses
# # most client ignore this so set it to ''
# discovery_signed_response_key_id: ''
# # authorization policies
# authorization_policy:
# policy_name:
# default_policy: 'two_factor'
# rules:
# - policy: 'one_factor'
# subject: 'group:services'
# clients:
#########################################
# sso configuration for vikunja #
#########################################
# - client_id: 'vikunja'
# client_name: 'Vikunja'
# client_secret: '$pbkdf2-sha512$310000$hPnUYU6BCaRSZYulOiWXwA$5hsAJD494cyoQ/X9JlAbsMF//yGDg009lfDe2WhGQjl5JA>
# public: false
# authorization_policy: 'one_factor'
# require_pkce: false
# pkce_challenge_method: ''
# redirect_uris:
# - 'https://task.crenam.space/auth/openid/authelia'
# - 'https://task.crenam.space/login?redirectToProvider=authentik'
# scopes:
# - 'openid'
# - 'profile'
# - 'email'
# response_types:
# - 'code'
# grant_types:
# - 'authorization_code'
# access_token_signed_response_alg: 'none'
# userinfo_signed_response_alg: 'none'
# token_endpoint_auth_method: 'client_secret_post'
# - client_id: 'vikunja'
# client_name: 'Vikunja'
# # generated with
# client_secret: '$pbkdf2-sha512$310000$hPnUYU6BCaRSZYulOiWXwA$5hsAJD494cyoQ/X9JlAbsMF//yGDg009lfDe2WhGQ>
# public: false
# redirect_uris:
# - 'https://task.crenam.space/auth/openid/authelia'
# - 'https://task.crenam.space/login?redirectToProvider=authentik'
#
# # audience this client is allowed to request
# audience: []
# # scopes this client is allowed to request
# scopes:
# -
#
# # list of response modes the client support
# response_modes:
# - 'form_post'
# - 'query'
# # the policy required for this client
# # can also be the key names fot eh authorization policies section
# authorization_policy: 'one_factor'
# require_pkce: false
# pkce_challenge_method: ''
# scopes:
# - 'openid'
# - 'profile'
# - 'email'
# response_types:
# - 'code'
# grant_types:
# - 'authorization_code'
# access_token_signed_response_alg: 'none'
# userinfo_signed_response_alg: 'none'
# token_endpoint_auth_method: 'client_secret_post'
#########################################
# config sso for gitea #
#########################################
# - client_id: 'gitea'
# client_name: 'Gitea'
# client_secret: '$pbkdf2-sha512$310000$pJR7colZSiWF7SWIfUsoqg$IGGqIZGVqcpXpzVCBgptZ3zBMqpFk4oaIKvOZPa1fn/GIg>
# public: false
# authorization_policy: 'one_factor'
# require_pkce: false
# pkce_challenge_method: ''
# redirect_uris:
# - 'https://git.crenam.space/user/oauth2/authelia/callback'
# scopes:
# - 'openid'
# - 'email'
# - 'profile'
# response_types:
# - 'code'
# grant_types:
# - 'authorization_code'
# access_token_signed_response_alg: 'none'
# userinfo_signed_response_alg: 'none'
# token_endpoint_auth_method: 'client_secret_basic'
# - client_id: 'gitea'
# client_name: 'Gitea'
# client_secret: '$pbkdf2-sha512$310000$pJR7colZSiWF7SWIfUsoqg$IGGqIZGVqcpXpzVCBgptZ3zBMqpFk4oaIKvOZPa1f>
# public: false
# authorization_policy: 'one_factor'
# require_pkce: false
# pkce_challenge_method: ''
# redirect_uris:
# - 'https://git.crenam.space/user/oauth2/authelia/callback'
# scopes:
# - 'openid'
# - 'email'
# - 'profile'
# response_types:
# - 'code'
# grant_types:
# - 'authorization_code'
# access_token_signed_response_alg: 'none'
# userinfo_signed_response_alg: 'none'
# token_endpoint_auth_method: 'client_secret_basic'