完善证书管理与初始化流程

This commit is contained in:
xuans committed 2026-08-27 22:16:10 +08:00
1 parent 07636abe44
commit c74372284a
84 files changed
+10151 -3502

No files matched your search

+5 -4
View File
@@ -1,5 +1,5 @@
[Unit]
Description=Scert-admin 本地密码重置服务
Description=Scert-admin 临时密码重置入口激活器
Documentation=file:///scert/docs/Scert-admin服务管理说明.md
After=network-online.target
Wants=network-online.target
@@ -14,14 +14,15 @@ ExecStart=/scert/scert-admin --config /scert/conf/scert.json
KillSignal=SIGTERM
TimeoutStopSec=15
Restart=no
RuntimeMaxSec=30min
UMask=0077
NoNewPrivileges=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=full
ReadWritePaths=/scert/conf /scert/data /scert/log /scert/backups
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
ReadWritePaths=/scert/data /scert/log
RestrictAddressFamilies=AF_UNIX
# Scert-admin 由程序层强制只允许监听回环地址;本服务不创建公网防火墙规则。
# Scert-admin 不监听任何 TCP/UDP 端口,只维护主服务 /reset 路径的短时激活租约。
# 刻意不提供 [Install] 段,禁止通过 systemctl enable 纳入开机启动。
# 不配置 ExecReload,reload 不属于受支持的控制操作。