mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
14 lines
351 B
Python
14 lines
351 B
Python
![]() |
import os
|
||
|
|
||
|
def numCPUs():
|
||
|
if not hasattr(os, "sysconf"):
|
||
|
raise RuntimeError("No sysconf detected.")
|
||
|
return os.sysconf("SC_NPROCESSORS_ONLN")
|
||
|
|
||
|
bind = "127.0.0.1:8000"
|
||
|
pidfile = "/home/conesus/newsblur/logs/gunicorn.pid"
|
||
|
logfile = "/home/conesus/newsblur/logs/production.log"
|
||
|
loglevel = "debug"
|
||
|
name = "newsblur"
|
||
|
workers = numCPUs() * 2
|