commit cd0b432d7a5b269f975e082f6d231629e42908c7 Author: HPCesia Date: Sun Nov 17 17:01:02 2024 +0800 增加 Authelia diff --git a/authelia/4.38.17-lite/data.yml b/authelia/4.38.17-lite/data.yml new file mode 100644 index 0000000..a4d3d21 --- /dev/null +++ b/authelia/4.38.17-lite/data.yml @@ -0,0 +1,38 @@ +additionalProperties: + formFields: + - default: 9091 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: a_random_string_with_20_or_more_chars + envKey: PANEL_STORAGE_ENCRYPTION_KEY + labelEn: Storage encryption key + labelZh: 存储加密密钥 + required: true + rule: paramComplexity + type: password + - default: a_random_alphanumeric_string_with_64_or_more_chars + envKey: PANEL_SESSION_SECRET + labelEn: Session password + labelZh: 会话加密密钥 + required: true + rule: paramComplexity + type: password + - default: "a_random_alphanumeric_string_with_64_or_more_chars" + envKey: PANEL_RESET_PWD_SECRET + labelEn: Reset password secret + labelZh: 重置密码加密密钥 + required: true + rule: paramComplexity + type: password + - default: Asia/Shanghai + edit: true + envKey: TIME_ZONE + labelEn: Time zone + labelZh: 时区 + required: true + type: text diff --git a/authelia/4.38.17-lite/data/configuration.yml b/authelia/4.38.17-lite/data/configuration.yml new file mode 100644 index 0000000..b8423c0 --- /dev/null +++ b/authelia/4.38.17-lite/data/configuration.yml @@ -0,0 +1,51 @@ +server: + address: "tcp://:9091" + +authentication_backend: + file: + path: "/config/users_database.yml" + +totp: + disable: false + issuer: "authelia.com" + +identity_validation: + reset_password: + jwt_algorithm: "HS512" + +session: + cookies: + - name: "authelia_session" + domain: "example.com" + authelia_url: "https://authelia.example.com" + expiration: "1 hour" + inactivity: "5 minutes" + remember_me: "1 week" + +access_control: + default_policy: "deny" + rules: + - domain: "public.example.com" + policy: "bypass" + - domain: "private.example.com" + policy: "one_factor" + - domain: "secure.example.com" + policy: "two_factor" + +regulation: + max_retries: 3 + find_time: "2 minutes" + ban_time: "5 minutes" + +storage: + local: + path: "/config/db.sqlite3" + +notifier: + filesystem: + filename: "/config/notification.txt" + # smtp: + # username: 'test' + # password: 'password' + # address: 'smtp://mail.example.com:25' + # sender: 'admin@example.com' diff --git a/authelia/4.38.17-lite/data/users_database.yml b/authelia/4.38.17-lite/data/users_database.yml new file mode 100644 index 0000000..8b8b8ca --- /dev/null +++ b/authelia/4.38.17-lite/data/users_database.yml @@ -0,0 +1,19 @@ +--- +############################################################### +# Users Database # +############################################################### + +# This file can be used if you do not have an LDAP set up. + +# List of users +users: + authelia: + disabled: false + displayname: "Authelia User" + # Password is authelia + password: "$6$rounds=50000$BpLnfgDsc2WD8F2q$Zis.ixdg9s/UOJYrs56b5QEZFiZECu0qZVNsIYxBaNJ7ucIL.nlxVCT5tqh8KHG8X4tlwCFm5r6NTOZZ5qRFN/" + email: authelia@authelia.com + groups: + - admins + - dev +... \ No newline at end of file diff --git a/authelia/4.38.17-lite/docker-compose.yml b/authelia/4.38.17-lite/docker-compose.yml new file mode 100644 index 0000000..e0f5abc --- /dev/null +++ b/authelia/4.38.17-lite/docker-compose.yml @@ -0,0 +1,24 @@ +services: + authelia: + container_name: ${CONTAINER_NAME} + image: authelia/authelia:4.38.17 + restart: unless-stopped + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:9091" + volumes: + - ./data:/config + labels: + createdBy: "Apps" + environment: + - PUID=1000 + - PGID=1000 + - TZ=${TIME_ZONE} + - AUTHELIA_STORAGE_ENCRYPTION_KEY=${PANEL_STORAGE_ENCRYPTION_KEY} + - AUTHELIA_SESSION_SECRET=${PANEL_SESSION_SECRET} + - AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=${PANEL_RESET_PWD_SECRET} + +networks: + 1panel-network: + external: true diff --git a/authelia/README.md b/authelia/README.md new file mode 100644 index 0000000..817d665 --- /dev/null +++ b/authelia/README.md @@ -0,0 +1,6 @@ +## 简介 +Authelia 是一个开源的身份验证和授权服务器,它通过 Web 界面提供应用程序的两因素认证(2FA)和单点登录(SSO)。它作为反向代理的伴侣,能够允许、拒绝或重定向请求。 + +有关详细信息,请访问 https://www.authelia.com/。 + +## 配置 diff --git a/authelia/data.yml b/authelia/data.yml new file mode 100644 index 0000000..d46e410 --- /dev/null +++ b/authelia/data.yml @@ -0,0 +1,20 @@ +name: Authelia +tags: + - 工具 +title: 一个提供双因素认证和单点登录(SSO)的应用程序的开源身份验证和授权服务器 +type: 工具 +description: 一个提供双因素认证和单点登录(SSO)的应用程序的开源身份验证和授权服务器 +additionalProperties: + key: authelia + name: Authelia + tags: + - Tool + shortDescZh: 一个提供双因素认证和单点登录(SSO)的应用程序的开源身份验证和授权服务器 + shortDescEn: an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://www.authelia.com/ + github: https://github.com/authelia/authelia/ + document: https://www.authelia.com/ diff --git a/authelia/logo.png b/authelia/logo.png new file mode 100644 index 0000000..110db52 Binary files /dev/null and b/authelia/logo.png differ