📦 | remove hardcoded paths and hardening from service template
This commit is contained in:
@@ -1,18 +1,11 @@
|
||||
[Unit]
|
||||
Description=Unsloth Studio CORS Proxy
|
||||
Documentation=https://github.com/NikkeDoy/CORSProxy
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /opt/CORSProxy/main.py --target 127.0.0.1:8888 --listen 8080
|
||||
WorkingDirectory=/opt/CORSProxy
|
||||
ExecStart=INSERT_PATH_TO/main.py --target 127.0.0.1:8888 --listen 8080
|
||||
Restart=on-failure
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
CapabilityBoundingSet=
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user