From f6cb1f35acac03524065768e33aa09a5becf1636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= <78488229+viktor138irk@users.noreply.github.com> Date: Sat, 9 May 2026 22:08:06 +0900 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20sy?= =?UTF-8?q?stemd=20unit=20Pulse=20Push=20Gateway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/systemd/pulse-push-gateway.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 deploy/systemd/pulse-push-gateway.service 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