diff options
Diffstat (limited to 'scripts/systemd/fundlab-gateway.service')
| -rw-r--r-- | scripts/systemd/fundlab-gateway.service | 18 |
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 |
