]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
update service files
authornutra-bot <nutradigest@gmail.com>
Wed, 29 Jun 2022 05:16:40 +0000 (05:16 +0000)
committernutra-bot <nutradigest@gmail.com>
Wed, 29 Jun 2022 05:17:08 +0000 (05:17 +0000)
etc/systemd/system/ghrunner.service
etc/systemd/system/ntserv.service

index 1ee04303b7669ca2f15c0597a71ee0a49ad3482d..2a1443d730642a90acd2dc66f0532604008b5fd9 100644 (file)
@@ -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
index 4feb22e49638efc406719e5801961de70d6ceae7..2b83a17c1f983e7b998a60e230985a7e46d7421a 100644 (file)
@@ -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