From 0e65c00b280b099cd344d844eef2b5bf6a18becf Mon Sep 17 00:00:00 2001 From: nutra-bot Date: Tue, 18 Apr 2023 23:11:47 +0000 Subject: [PATCH] update ntserv systemd config (new sanic) --- etc/systemd/system/ntserv.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/systemd/system/ntserv.service b/etc/systemd/system/ntserv.service index 502d9df..a92465f 100644 --- a/etc/systemd/system/ntserv.service +++ b/etc/systemd/system/ntserv.service @@ -1,11 +1,11 @@ [Unit] -Description=Nutra Server (Sanic / PostgreSQL) +Description=NT Server (Sanic / Postgres) [Service] User=github -ExecStart=/usr/bin/env python3 -m ntserv +ExecStart=/usr/bin/env python3 -m sanic ntserv.routes:app --host=127.0.0.1 --port=20000 --workers=2 Restart=always -Environment="NTSERV_ENV=dev" "NTSERV_SERVER_HOST=https://dev.nutra.tk" "NTSERV_N_WORKERS=2" "NTSERV_PSQL_PASSWORD=REDACTED" "NTSERV_JWT_SECRET=secret" "NTSERV_PROXY_SECRET=secret" +Environment="NTSERV_ENV=dev" "NTSERV_SERVER_HOST=https://dev.nutra.tk" "NTSERV_PSQL_PASSWORD=REDACTED" "NTSERV_JWT_SECRET=secret" "NTSERV_PROXY_SECRET=secret" [Install] WantedBy=multi-user.target -- 2.52.0