nixos/package/tubesync/gunicorn-env.patch

20 lines
634 B
Diff

diff --git a/tubesync/tubesync/gunicorn.py b/tubesync/tubesync/gunicorn.py
index d59c138..341af25 100644
--- a/tubesync/tubesync/gunicorn.py
+++ b/tubesync/tubesync/gunicorn.py
@@ -23,11 +23,10 @@ def get_bind():
workers = get_num_workers()
timeout = 30
-chdir = '/app'
daemon = False
-pidfile = '/run/app/gunicorn.pid'
-user = 'app'
-group = 'app'
+pidfile = os.getenv('GUNICORN_PID_FILE', '/var/run/tubesync/gunicorn.pid')
+user = os.getenv('GUNICORN_USER', 'tubesync')
+group = os.getenv('GUNICORN_GROUP', 'tubesync')
loglevel = 'info'
errorlog = '-'
accesslog = '/dev/null' # Access logs are printed to stdout from nginx