Import deployment configuration: deploy/systemd/cshare-api.service

Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
arsam
2026-09-18 23:15:21 +03:30
parent 76636f670a
commit 3e647c9432
+21
View File
@@ -0,0 +1,21 @@
[Unit]
Description=CShare API
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/cshare/backend
EnvironmentFile=/etc/cshare/api.env
ExecStart=/usr/bin/node dist/server.js
Restart=always
RestartSec=5
User=cshare
Group=cshare
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/var/lib/cshare
[Install]
WantedBy=multi-user.target