feat: sing-box 下载默认经 https://git.86482425.xyz 代理
- GITHUB_PROXY 可配置;失败自动回退直连 GitHub
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=cellular-proxy (sing-box dual-WAN split, Chinese UI)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-@INSTALL_DIR@/etc/runtime.env
|
||||
ExecStartPre=/bin/mkdir -p /var/lib/cellular-proxy @LOG_DIR@
|
||||
ExecStart=@INSTALL_DIR@/bin/sing-box run -c @INSTALL_DIR@/etc/config.json
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
LimitNOFILE=65535
|
||||
# 低内存设备软上限(install 时替换;0 则删除本行)
|
||||
MemoryMax=@MEMORY_MAX@
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
StandardOutput=append:@LOG_DIR@/stdout.log
|
||||
StandardError=append:@LOG_DIR@/stderr.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user