[database]
engine = django.db.backends.mysql
name = polemarch
user = polemarch
password = <db password>
host = <db server>
port = <db port>

[main]
projects_dir = /opt/poledata

[database.options]
connect_timeout = 20
init_command = SET sql_mode='STRICT_TRANS_TABLES', default_storage_engine=INNODB, NAMES 'utf8', CHARACTER SET 'utf8', SESSION collation_connection = 'utf8_unicode_ci'

[cache]
backend = django_redis.cache.RedisCache
location = redis://localhost:6379/1

[locks]
backend = django_redis.cache.RedisCache
location = redis://localhost:6379/2

[rpc]
connection = redis://localhost:6379/3
heartbeat = 5
concurrency = 8
enable_worker = true

[uwsgi]
processes = 4
threads = 4
harakiri = 120
vacuum = True
http-keepalive = true
http-auto-chunked = true
thread-stacksize = 512
pidfile = /run/polemarch/web.pid
log_file = /var/log/{PROG_NAME}/{PROG_NAME}_web.log
uid = polemarch
gid = polemarch

[worker]
# output will be /opt/polemarch/logs/polemarch_worker.log
logfile = /var/log/{PROG_NAME}/{PROG_NAME}_worker.log
# output will be /opt/polemarch/pid/polemarch_worker.pid
pidfile = /run/polemarch/polemarch_worker.pid
loglevel = INFO

