From a39776b526c879d1e0327f7f4dcc765d18eaffb4 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Sun, 16 Feb 2025 18:30:48 +1100 Subject: [PATCH] Added service file for deployment --- deploy/systemd/production.service | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 deploy/systemd/production.service diff --git a/deploy/systemd/production.service b/deploy/systemd/production.service new file mode 100644 index 0000000..0c4cacb --- /dev/null +++ b/deploy/systemd/production.service @@ -0,0 +1,27 @@ +[Unit] +Description=Project Reshoot +After=network.target + +[Service] +ExecStart=/home/deploy/production/projectreshoot +WorkingDirectory=/home/deploy/production +User=deploy +Group=deploy +Environment="HOST=0.0.0.0" +Environment="PORT=3000" +Environment="TRUSTED_HOST=projectreshoot.com" +Environment="SSL=true" +Environment="GZIP=true" +Environment="LOG_LEVEL=info" +Environment="LOG_DIR=/home/deploy/production/logs" +LimitNOFILE=65536 +Restart=on-failure +TimeoutSec=30 +PrivateTmp=true +NoNewPrivilages=true +AmbientCapabilites=CAP_NET_BIND_SERVICE +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target