Import deployment configuration: app/deploy/systemd/teknav-backend.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:20:58 +03:30
parent 8e12f73618
commit 113d66adbf
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=Teknav Fastify backend
After=network-online.target postgresql.service redis-server.service
Wants=network-online.target
[Service]
Type=simple
User=teknav
Group=teknav
WorkingDirectory=/opt/teknav/current/backend
EnvironmentFile=/etc/teknav/backend.env
ExecStart=/usr/bin/npm run start
Restart=always
RestartSec=5
KillSignal=SIGTERM
TimeoutStopSec=30
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/var/lib/teknav/uploads
[Install]
WantedBy=multi-user.target