summaryrefslogtreecommitdiff
path: root/scripts/systemd/fundlab-gateway.service
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-22 07:30:09 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-22 07:30:09 +0800
commit3d95b9c736a4cf59cf26bd9e5c7c3162ee8c0fd7 (patch)
tree843b04ddb0c3307f05cd1b5d26d4d70aec2ff0dc /scripts/systemd/fundlab-gateway.service
parent6ba727422137b35c00b9bb983e574d23a4d15e24 (diff)
downloadfund-lab-3d95b9c736a4cf59cf26bd9e5c7c3162ee8c0fd7.tar.gz
Add fund-lab production systemd --user units and gateway config (3d-28)
Diffstat (limited to 'scripts/systemd/fundlab-gateway.service')
-rw-r--r--scripts/systemd/fundlab-gateway.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/systemd/fundlab-gateway.service b/scripts/systemd/fundlab-gateway.service
new file mode 100644
index 0000000..24500ef
--- /dev/null
+++ b/scripts/systemd/fundlab-gateway.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=fund-lab web gateway (loopback 5176 frontend + 8098 tunnel origin -> static dist + /api,/health proxy)
+Documentation=file:/home/somhairle/projects/fund-lab/scripts/systemd/README.md
+After=network-online.target fundlab-api.service
+Wants=network-online.target
+
+[Service]
+Type=simple
+WorkingDirectory=/home/somhairle/projects/fund-lab
+ExecStartPre=/bin/mkdir -p /home/somhairle/projects/fund-lab/var/fund-lab/nginx-tmp
+ExecStart=/usr/sbin/nginx -c /home/somhairle/projects/fund-lab/scripts/systemd/nginx-fundlab.conf -g 'daemon off;'
+Restart=on-failure
+RestartSec=3
+StandardOutput=append:/home/somhairle/projects/fund-lab/var/fund-lab/gateway.log
+StandardError=append:/home/somhairle/projects/fund-lab/var/fund-lab/gateway.log
+
+[Install]
+WantedBy=default.target