From aff2b6b340e680f8310721243c56b6aad22d1cc2 Mon Sep 17 00:00:00 2001 From: NikkeDoy Date: Tue, 19 May 2026 17:50:37 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20|=20remove=20hardcoded=20paths?= =?UTF-8?q?=20and=20hardening=20from=20service=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/corsproxy.service | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/services/corsproxy.service b/services/corsproxy.service index 4a56791..a581200 100644 --- a/services/corsproxy.service +++ b/services/corsproxy.service @@ -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