server.conf
1.06 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
# -*- 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 (see README.txt on how to generate certificates)
; server.ssl_module can be '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
log.error_file = 'logs/errors.log'
log.access_file = 'logs/access.log'
tools.sessions.on = True
tools.sessions.timeout = 240
tools.sessions.storage_type = 'ram'
tools.sessions.storage_path = 'sessions'
tools.auth.on = True
[/]
tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir))
tools.staticdir.dir = 'static'
tools.staticdir.on = True
; tools.staticdir.debug = True