douyinWEB/scripts/linux/douyinweb-singbox.service
eric f7dc2b6b4e Add VPS static residential IP via isolated douyinweb-singbox.
US VPS can use egress_mode=residential (127.0.0.1:17891) without touching host sing-box.service / v2ray-agent; default remains datacenter direct.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 21:03:34 -05:00

25 lines
701 B
Desktop File

[Unit]
Description=DouyinWEB residential SOCKS forwarder (isolated from v2ray-agent)
Documentation=file:/opt/douyinWEB/README.md
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# MUST NOT be named sing-box.service — that unit belongs to v2ray-agent.
WorkingDirectory=/opt/douyinWEB/backend
ExecStart=/usr/bin/sing-box run -c /opt/douyinWEB/config/sing-box.json
Restart=on-failure
RestartSec=3
Nice=5
# Bind only via config listen 127.0.0.1:17891 — never TUN / never rewrite host routes.
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
# Hard deny writing v2ray-agent tree
ReadOnlyPaths=/etc/v2ray-agent
[Install]
WantedBy=multi-user.target