mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
736 B
28 lines
736 B
import os
|
|
import time
|
|
import sys
|
|
sys.path.append(os.getcwd() + '/class/core')
|
|
import public
|
|
|
|
if not os.path.exists(os.getcwd() + '/logs'):
|
|
os.mkdir(os.getcwd() + '/logs')
|
|
|
|
bt_port = public.readFile('data/port.pl')
|
|
bind = ['0.0.0.0:%s' % bt_port]
|
|
workers = 1
|
|
threads = 1
|
|
backlog = 512
|
|
reload = False
|
|
daemon = False
|
|
timeout = 7200
|
|
keepalive = 1
|
|
chdir = os.getcwd()
|
|
capture_output = True
|
|
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'
|
|
loglevel = 'info'
|
|
errorlog = os.getcwd() + '/logs/error.log'
|
|
accesslog = os.getcwd() + '/logs/access.log'
|
|
pidfile = os.getcwd() + '/logs/mw.pid'
|
|
# if os.path.exists(chdir + '/data/ssl.pl'):
|
|
# certfile = 'ssl/certificate.pem'
|
|
# keyfile = 'ssl/privateKey.pem'
|
|
|