chore(deploy): 统一初始化 Dovecot 认证策略随机数

- 在部署入口脚本中生成并持久化 `auth_policy_hash_nonce`,避免每次启动变更。
- 同步更新 Dovecot 配置项为 `auth_policy_request_attributes`,并注入随机数值。
This commit is contained in:
LanQin_
2026-06-23 15:07:15 +08:00
parent b309368225
commit ce9d705df0
3 changed files with 20 additions and 2 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ auth_policy_server_url = http://127.0.0.1:8080/auth-policy
auth_policy_server_api_header = Content-Type: application/json
auth_policy_hash_mech = sha256
auth_policy_hash_truncate = 12
auth_policy_request_fields = protocol=imap username=user
auth_policy_hash_nonce = __LANQIN_AUTH_POLICY_HASH_NONCE__
auth_policy_request_attributes = protocol=imap username=user
namespace inbox {
inbox = yes