mirror of
https://github.com/Ninjaclasher/dmoj-docker.git
synced 2024-11-25 16:36:31 +08:00
27 lines
523 B
INI
27 lines
523 B
INI
[uwsgi]
|
|
# Socket and pid file location/permission.
|
|
socket = :8000
|
|
pidfile = /tmp/dmoj-site.pid
|
|
chmod-pidfile = 666
|
|
|
|
# Paths.
|
|
chdir = .
|
|
|
|
# Details regarding DMOJ application.
|
|
protocol = uwsgi
|
|
master = true
|
|
plugins = python
|
|
env = DJANGO_SETTINGS_MODULE=dmoj.settings
|
|
module = dmoj.wsgi:application
|
|
optimize = 2
|
|
|
|
# Scaling settings. Tune as you like.
|
|
memory-report = true
|
|
cheaper-algo = backlog
|
|
cheaper = 3
|
|
cheaper-initial = 5
|
|
cheaper-step = 1
|
|
cheaper-rss-limit-soft = 201326592
|
|
cheaper-rss-limit-hard = 234881024
|
|
workers = 7
|