package(tubesync): add tubesync application and module

This commit is contained in:
514fpv 2024-02-21 23:25:06 +08:00
parent be583ed13b
commit 5a71752aa0
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
5 changed files with 356 additions and 0 deletions

View file

@ -0,0 +1,19 @@
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