Build and Release / build-and-test (amd64, alpine) (push) Successful in 20s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 42s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 27s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 9s
Build and Release / release (push) Has been skipped
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
719 B
Desktop File
40 lines
719 B
Desktop File
[Unit]
|
|
Description=XXXig Proxy Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# 工作目录
|
|
WorkingDirectory=/opt/xxxig-proxy
|
|
|
|
# 执行命令
|
|
ExecStart=/opt/xxxig-proxy/xxxig-proxy --config=/etc/xxxig-proxy/config.json --log-file=/var/log/xxxig-proxy/proxy.log --access-log-file=/var/log/xxxig-proxy/access.log
|
|
|
|
# 重启策略
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# 用户和组
|
|
User=xxxig-proxy
|
|
Group=xxxig-proxy
|
|
|
|
# 安全设置
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/log/xxxig-proxy
|
|
|
|
# 日志设置
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=xxxig-proxy
|
|
|
|
# 资源限制
|
|
LimitNOFILE=65535
|
|
LimitNPROC=4096
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|