From b0226d24bc458bb5e45639123408ed9ad6a8b677 Mon Sep 17 00:00:00 2001 From: nutra-bot Date: Wed, 29 Jun 2022 05:16:40 +0000 Subject: [PATCH] update service files --- etc/systemd/system/ghrunner.service | 7 ++++--- etc/systemd/system/ntserv.service | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/systemd/system/ghrunner.service b/etc/systemd/system/ghrunner.service index 1ee0430..2a1443d 100644 --- a/etc/systemd/system/ghrunner.service +++ b/etc/systemd/system/ghrunner.service @@ -1,11 +1,12 @@ [Unit] -Description=GitHub Action Runner +Description=GitHub Action Runner (nutra-server) [deploy-dev] [Service] -User=shane -WorkingDirectory=/home/shane/actions-runner +User=sanic +WorkingDirectory=/home/sanic/actions-runner ExecStart=/bin/bash run.sh Restart=always +Environment="NTSERV_PSQL_PASSWORD=REDACTED" [Install] WantedBy=multi-user.target diff --git a/etc/systemd/system/ntserv.service b/etc/systemd/system/ntserv.service index 4feb22e..2b83a17 100644 --- a/etc/systemd/system/ntserv.service +++ b/etc/systemd/system/ntserv.service @@ -2,10 +2,10 @@ Description=Nutra Server (Sanic / PostgreSQL) [Service] -User=shane +User=sanic ExecStart=/usr/bin/env python3 -m ntserv Restart=always -Environment="NTSERV_ENV=dev" "NTSERV_SERVER_HOST=https://deveast.linode.poczatek.dev" "NTSERV_N_WORKERS=2" "NTSERV_PSQL_PASSWORD=password" "NTSERV_JWT_SECRET=secret" "NTSERV_PROXY_SECRET=secret" +Environment="NTSERV_ENV=dev" "NTSERV_SERVER_HOST=https://deveast.linode.poczatek.dev" "NTSERV_N_WORKERS=2" "NTSERV_PSQL_PASSWORD=REDACTED" "NTSERV_JWT_SECRET=secret" "NTSERV_PROXY_SECRET=secret" [Install] WantedBy=multi-user.target -- 2.52.0