pokeapi/gunicorn.conf.py
2021-05-28 11:52:40 +02:00

6 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