初始化 XXXig 打包部署脚本与 CI 流水线
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 1m12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 1m21s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5m24s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6m8s
Build and Release / release (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 11:28:03 +08:00
co-authored by Claude Opus 4.8
commit 28bc2116fd
16 changed files with 1787 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
[Unit]
Description=XXXig Server (Control Center)
After=network.target
[Service]
Type=simple
# 工作目录
WorkingDirectory=/opt/xxxig
# 执行命令
ExecStart=/opt/xxxig/xxxigServer --config /etc/xxxig/config_cc.json --log-file=/var/log/xxxig/server.log
# 重启策略
Restart=always
RestartSec=10
# 用户和组
User=xxxig
Group=xxxig
# 安全设置
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/xxxig
# 日志设置
StandardOutput=journal
StandardError=journal
SyslogIdentifier=xxxig-server
# 资源限制
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target