25 lines
No EOL
532 B
Python
Executable file
25 lines
No EOL
532 B
Python
Executable file
"""
|
|
Hypercorn configuration file for production deployment.
|
|
|
|
This sets longer timeouts for AI generation requests.
|
|
"""
|
|
|
|
# Bind to 0.0.0.0:5137
|
|
bind = "0.0.0.0:5137"
|
|
|
|
# Worker configuration
|
|
workers = 4
|
|
worker_class = "asyncio"
|
|
|
|
# Connection settings
|
|
keep_alive = 65
|
|
max_requests = 1000
|
|
max_requests_jitter = 50
|
|
|
|
# Logging
|
|
accesslog = None # Disable access logging for successful requests
|
|
errorlog = "-" # Log to stderr
|
|
log_level = "info" # Keep info level for application logs
|
|
|
|
# Application settings
|
|
application_path = "run:app" |