📦 | remove hardcoded paths and hardening from service template

This commit is contained in:
2026-05-19 17:50:37 +03:00
parent a8b6d1dae4
commit aff2b6b340

View File

@@ -1,18 +1,11 @@
[Unit] [Unit]
Description=Unsloth Studio CORS Proxy Description=Unsloth Studio CORS Proxy
Documentation=https://github.com/NikkeDoy/CORSProxy
After=network.target After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/python3 /opt/CORSProxy/main.py --target 127.0.0.1:8888 --listen 8080 ExecStart=INSERT_PATH_TO/main.py --target 127.0.0.1:8888 --listen 8080
WorkingDirectory=/opt/CORSProxy
Restart=on-failure Restart=on-failure
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
CapabilityBoundingSet=
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install] [Install]
WantedBy=default.target multi-user.target WantedBy=default.target multi-user.target