Spaces:
Sleeping
Sleeping
| import os | |
| # Server socket | |
| bind = f"0.0.0.0:{os.environ.get('PORT', '10000')}" | |
| backlog = 2048 | |
| # Worker processes | |
| workers = 1 # Free tier has limited memory | |
| worker_class = 'sync' | |
| worker_connections = 1000 | |
| timeout = 120 # AI models take time to load | |
| keepalive = 5 | |
| # Logging | |
| accesslog = '-' | |
| errorlog = '-' | |
| loglevel = 'info' | |
| # Process naming | |
| proc_name = 'neurosight' | |
| # Server mechanics | |
| daemon = False | |
| pidfile = None | |
| umask = 0 | |
| user = None | |
| group = None | |
| tmp_upload_dir = None | |
| # SSL (not needed, Render handles this) | |
| keyfile = None | |
| certfile = None | |