Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
22 lines
381 B
Desktop File
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
|