pokeapi/gunicorn.conf.py

7 lines
165 B
Python

import os
from multiprocessing import cpu_count
bind = "0.0.0.0:{}".format(os.environ.get("SERVER_PORT", "80"))
workers = cpu_count() * 2
threads = cpu_count() * 2