From: nutra-bot Date: Tue, 18 Apr 2023 23:11:47 +0000 (+0000) Subject: update ntserv systemd config (new sanic) X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=0e65c00b280b099cd344d844eef2b5bf6a18becf;p=nutratech%2Fvps-root.git update ntserv systemd config (new sanic) --- 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