From 52bc4dec27edd1c873541f31275aa6a5d1e9381e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 30 Aug 2022 06:54:14 +0200 Subject: [PATCH] don't run chat in localhost (makes shit slow) --- files/__main__.py | 2 +- supervisord.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 7228c9cc6..9b3832f92 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -127,7 +127,7 @@ def teardown_request(error): if app.config["SERVER_NAME"] == 'localhost': from files.routes import * - from files.routes.chat import * + # from files.routes.chat import * elif "load_chat" in argv: from files.routes.chat import * else: diff --git a/supervisord.conf b/supervisord.conf index 745fc8857..0bde4b3fe 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -5,7 +5,7 @@ logfile=/tmp/supervisord.log [program:service] directory=/service -command=gunicorn files.__main__:app -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 --reload -b 0.0.0.0:80 --max-requests 1000 --max-requests-jitter 500 +command=gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --max-requests 30000 --max-requests-jitter 10000 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr