mirror of
https://github.com/brockar/ml-converter.git
synced 2026-01-11 15:01:01 -03:00
37 lines
698 B
Python
37 lines
698 B
Python
# Gunicorn configuration file for ML Converter
|
|
# Usage: gunicorn -c gunicorn.conf.py src.app:app
|
|
|
|
# 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, with up to 50% jitter
|
|
max_requests = 1000
|
|
max_requests_jitter = 50
|
|
|
|
# Logging
|
|
accesslog = "-"
|
|
errorlog = "-"
|
|
loglevel = "info"
|
|
|
|
# Process naming
|
|
proc_name = "ml-converter"
|
|
|
|
# Server mechanics
|
|
daemon = False
|
|
pidfile = "/tmp/ml-converter.pid"
|
|
user = None
|
|
group = None
|
|
tmp_upload_dir = None
|
|
|
|
# SSL (uncomment and configure for HTTPS)
|
|
# keyfile = "/path/to/keyfile"
|
|
# certfile = "/path/to/certfile"
|