1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00
mygpo_ynh/sources/patches/main-00-gunicorn.conf.py.patch

28 lines
840 B
Diff
Raw Normal View History

2021-03-15 01:36:28 +01:00
diff --git a/conf/gunicorn.conf.py b/conf/gunicorn.conf.py
2023-09-27 11:03:42 +02:00
index c5940616..28c84d79 100644
2021-03-15 01:36:28 +01:00
--- a/conf/gunicorn.conf.py
+++ b/conf/gunicorn.conf.py
2023-09-27 11:03:42 +02:00
@@ -1,17 +1,17 @@
# import multiprocessing
2021-03-15 01:36:28 +01:00
import os
2023-09-27 11:03:42 +02:00
2021-03-15 01:36:28 +01:00
-bind = "unix:/tmp/mygpo.sock"
+#bind = "unix:/tmp/mygpo.sock"
#workers = multiprocessing.cpu_count()
workers = 3
2023-09-27 11:03:42 +02:00
2021-03-15 01:36:28 +01:00
# The maximum number of requests a worker will process before restarting.
# max_requests = 1000
2023-09-27 11:03:42 +02:00
-log_dir = os.getenv("LOGGING_DIR_GUNICRON", "/var/log/gunicorn/")
-errorlog = log_dir + "error.log"
-accesslog = log_dir + "access.log"
2021-03-15 01:36:28 +01:00
-loglevel = "info"
2023-09-27 11:03:42 +02:00
+#log_dir = os.getenv("LOGGING_DIR_GUNICRON", "/var/log/gunicorn/")
+#errorlog = log_dir + "error.log"
+#accesslog = log_dir + "access.log"
+#loglevel = "info"
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s %(T)s "%(f)s" "%(a)s"'
2023-09-27 11:03:42 +02:00
2021-03-15 01:36:28 +01:00
timeout = 120