diff --git a/deploy/systemd/pulse-push-gateway.service b/deploy/systemd/pulse-push-gateway.service new file mode 100644 index 0000000..9fb7c6e --- /dev/null +++ b/deploy/systemd/pulse-push-gateway.service @@ -0,0 +1,15 @@ +[Unit] +Description=Pulse Push Gateway +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/swchat/push-gateway +Environment=FIREBASE_SERVICE_ACCOUNT=/opt/swchat/push-gateway/firebase-service-account.json +ExecStart=/opt/swchat/push-gateway/venv/bin/uvicorn main:app --host 0.0.0.0 --port 8509 +Restart=always +RestartSec=5 +User=root + +[Install] +WantedBy=multi-user.target