server.conf
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- coding: utf-8 -*-
[global]
; environment= 'production'
; number of threads running
server.thread_pool= 10
; Host address and port
; set socket_port = 443 if SSL is enabled below, 8080 otherwise
; if port is 443 then the server should be run as root. SSL also works on 8080.
server.socket_host = '0.0.0.0'
server.socket_port = 8080
; Uncomment to enable SSL
; 'builtin' or 'pyopenssl'
; server.ssl_module = 'builtin'
; server.ssl_certificate = 'certs/webserver.crt'
; server.ssl_private_key = 'certs/webserver.key'
; not required for snakeoil:
; server.ssl_certificate_chain = 'ca_certs.crt'
log.screen = False
# add path to the log files here. empty strings disable logging
log.error_file = 'logs/errors.log'
log.access_file = 'logs/access.log'
# DO NOT DISABLE SESSIONS!
tools.sessions.on = True
tools.sessions.timeout = 240
tools.sessions.storage_type = 'ram'
tools.sessions.storage_path = 'sessions'
; FIXME what is this for?
tools.auth.on = True
[/]
; Default root is under the server directory, but can be changed here
; tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir))
tools.staticdir.dir = 'static'
tools.staticdir.on = True