mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Add shadowsocks-go and XRay
This commit is contained in:
parent
0743e7c75a
commit
0d9a766d28
6 changed files with 422 additions and 4 deletions
18
xray.service
Normal file
18
xray.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=XRay Service
|
||||
Documentation=https://www.v2fly.org/
|
||||
After=network.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
NoNewPrivileges=true
|
||||
ExecStart=/usr/bin/xray run -config /etc/xray/xray-server.json
|
||||
Restart=always
|
||||
RestartPreventExitStatus=23
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue