package(tubesync): add tubesync application and module
This commit is contained in:
parent
be583ed13b
commit
5a71752aa0
5 changed files with 356 additions and 0 deletions
19
package/tubesync/gunicorn-env.patch
Normal file
19
package/tubesync/gunicorn-env.patch
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue