From 9c0b2d87444016a16765b4fe5a54405a1afd466a Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sun, 4 May 2025 20:04:17 -0500 Subject: [PATCH] Add gunicorn_config.py --- gunicorn_config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gunicorn_config.py diff --git a/gunicorn_config.py b/gunicorn_config.py new file mode 100644 index 0000000..9e8b0e3 --- /dev/null +++ b/gunicorn_config.py @@ -0,0 +1,13 @@ +bind = "0.0.0.0:5150" +workers = 4 +timeout = 120 +keepalive = 5 +loglevel = "debug" +errorlog = "/home/ircd/ircBridgeV3/gunicorn-error.log" +accesslog = "/home/ircd/ircBridgeV3/gunicorn-access.log" + +def on_starting(server): + from irc_bot import bot + print("[GUNICORN MASTER] Starting IRC bot...") + bot.connect() + bot.start() \ No newline at end of file