From: nutra-bot Date: Sat, 25 Jun 2022 04:01:07 +0000 (+0000) Subject: update service X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=36112a22401bcefe024141aadff3d941728e1504;p=nutratech%2Fvps-root.git update service --- diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default index 355c455..29f3f14 100644 --- a/etc/nginx/sites-available/default +++ b/etc/nginx/sites-available/default @@ -20,7 +20,7 @@ server { proxy_request_buffering off; proxy_buffering off; # Proxy forwarding (password configured in app.config.FORWARDED_SECRET) - proxy_set_header forwarded "$proxy_forwarded;secret=\"fdXyFNs4U7aabARo4VsUrPAcrWPHoiuz\""; + proxy_set_header forwarded "$proxy_forwarded;secret=\"REDACTED\""; # Allow websockets and keep-alive (avoid connection: close) proxy_set_header connection "upgrade"; proxy_set_header upgrade $http_upgrade; diff --git a/etc/systemd/system/ntserv.service b/etc/systemd/system/ntserv.service index 8dfd4ff..9c70720 100644 --- a/etc/systemd/system/ntserv.service +++ b/etc/systemd/system/ntserv.service @@ -5,6 +5,7 @@ Description=Sanic Example User=shane ExecStart=/usr/bin/env python3 -m ntserv Restart=always +Environment="ENV=prod" "WORKERS=2" "PSQL_PASSWORD=REDACTED" "JWT_SECRET=REDACTED" "PROXY_SECRET=REDACTED" [Install] WantedBy=multi-user.target