final app for testing and deployment
This commit is contained in:
37
gunicorn.conf.py
Normal file
37
gunicorn.conf.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# Gunicorn configuration file
|
||||
# Documentation: https://docs.gunicorn.org/en/stable/configure.html
|
||||
|
||||
# Server socket
|
||||
bind = "0.0.0.0:5000"
|
||||
backlog = 2048
|
||||
|
||||
# Worker processes
|
||||
workers = 4
|
||||
worker_class = "sync"
|
||||
worker_connections = 1000
|
||||
timeout = 30
|
||||
keepalive = 2
|
||||
|
||||
# Restart workers after this many requests, to prevent memory leaks
|
||||
max_requests = 1000
|
||||
max_requests_jitter = 50
|
||||
|
||||
# Logging
|
||||
accesslog = "-"
|
||||
errorlog = "-"
|
||||
loglevel = "info"
|
||||
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
|
||||
|
||||
# Process naming
|
||||
proc_name = "qr-code-manager"
|
||||
|
||||
# Server mechanics
|
||||
preload_app = True
|
||||
pidfile = "/tmp/gunicorn.pid"
|
||||
user = "app"
|
||||
group = "app"
|
||||
tmp_upload_dir = None
|
||||
|
||||
# SSL (uncomment and configure for HTTPS)
|
||||
# keyfile = "/path/to/keyfile"
|
||||
# certfile = "/path/to/certfile"
|
||||
Reference in New Issue
Block a user