Commit ec4fbd45b977fb645b8c57d4b3db05a439fc12ca

Authored by Miguel Barão
1 parent fa02522c
Exists in master and in 1 other branch dev

- /conf renamed to /config and forgot to add to the repository.

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