Merge branch 'devel'
[qcg-portal.git] / uwsgi.ini
1 [uwsgi]
2 base-dir = /home/portal/qcg-portal
3
4 uid = portal
5 gid = portal
6
7 cache2 = name=ssl,items=1000,keysize=128,blocksize=4096
8 ssl-sessions-use-cache = ssl
9 ssl-sessions-timeout = 300
10
11 shared-socket = :80
12 shared-socket = :443
13
14 http-to-https = =0
15 https = =1,%(base-dir)/certs/cert.crt,%(base-dir)/certs/cert.key,EECDH+aRSA+AES:EDH+aRSA+AES:kRSA+AES:@STRENGTH
16
17 add-header = Strict-Transport-Security: max-age=31536000
18
19 workers = 6
20 enable-threads = True
21 ; this do not play well with ssl cache...
22 ; thunder-lock = True
23
24 master = True
25 vacuum = True
26 umask = 022
27 pidfile = /var/run/uwsgi.pid
28 logfile-chmod = 644
29 daemonize = %(base-dir)/uwsgi.master.log
30 stats = %(base-dir)/uwsgi.stats.socket
31
32 chdir = %(base-dir)
33 virtualenv = /home/portal/venv
34 module = plgng.wsgi:application
35 env = DJANGO_SETTINGS_MODULE=plgng.settings_prod
36
37 static-map = /static=%(base-dir)/server-static