2021-05-28 09:52:40 +00:00
|
|
|
import os
|
2016-07-07 12:23:59 +00:00
|
|
|
from multiprocessing import cpu_count
|
|
|
|
|
2021-05-28 09:52:40 +00:00
|
|
|
bind = "0.0.0.0:{}".format(os.environ.get("SERVER_PORT", "80"))
|
2020-08-07 11:32:18 +00:00
|
|
|
workers = cpu_count() * 2
|
|
|
|
threads = cpu_count() * 2
|