From: nutra-bot Date: Wed, 29 Jun 2022 05:16:40 +0000 (+0000) Subject: update service files X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=b0226d24bc458bb5e45639123408ed9ad6a8b677;p=nutratech%2Fvps-root.git update service files --- 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