You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
226 B
Python

import multiprocessing
import os
env_port = int(os.environ.get("PORT", 8080))
bind = f"0.0.0.0:{env_port}"
workers = max(2, multiprocessing.cpu_count() * 2 + 1)
preload_app = True
max_requests = 100
max_requests_jitter = 50