From 3e647c94326cac9fab9a4f80ec446eedec2dfcc6 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:15:21 +0330 Subject: [PATCH] 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. --- deploy/systemd/cshare-api.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 deploy/systemd/cshare-api.service diff --git a/deploy/systemd/cshare-api.service b/deploy/systemd/cshare-api.service new file mode 100644 index 0000000..e268369 --- /dev/null +++ b/deploy/systemd/cshare-api.service @@ -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