Files
arsam 3e647c9432 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.
2026-09-18 23:15:21 +03:30

22 lines
381 B
Desktop File

[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