This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment.ini
124 lines (103 loc) · 2.6 KB
/
experiment.ini
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
###
# Created by Tobias Krauthoff
#
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/environment.html
###
# db:5432
[app:main]
use = egg:dbas
timezone = Europe/Berlin
mode = development
modern_bubbles = false
usage_of_matomo = false
full_stack = true
static_files = true
cache_dir = %(here)s/data
# These may be configured via enviroment variables eg. "PYRAMID_DEFAULT_LOCALE_NAME"
pyramid.reload_templates = true
pyramid.debug_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = true
pyramid.debug_routematch = false
pyramid.default_locale_name = de
available_languages = de en
pyramid.includes =
pyramid_beaker
# Database URLs
# URLs to the database are automatically created based on the credentials provided via the environment variables
# Beaker cache
beaker.cache.regions = short_term, long_term
beaker.cache.type = memory
beaker.cache.short_term.expire = 3600
beaker.cache.long_term.expire = 86400
beaker.cache.data_dir = %(here)s/data/cache/data
beaker.cache.lock_dir = %(here)s/data/cache/lock
# Beaker sessions
beaker.session.type = memory
beaker.session.autor = true
beaker.session.key = dbas_prototyp
beaker.session.secret = t1h4i0s4i2s0m1y5s2e2s0s5i1o9n8s9e0c5r0e8t2f0o1r0dbas
beaker.session.cookie_max_age = 3600
beaker.session.timeout = 3600
beaker.session.cookie_expires = true
beaker.session.data_dir = %(here)s/data/sessions/data
beaker.session.lock_dir = %(here)s/data/sessions/lock
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 4284
url_scheme = https
[uwsgi]
# processes / thread: http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html
http-socket = 0.0.0.0:4284
master = true
processes = %k + 1
threads = %k
limit-post = 65535
buffer-size = 65535
post-buffering = 8192
# harakiri = 60
lazy = true
lazy-apps = true
thunder-lock = true
# daemonize = ./uwsgi.log
pidfile = ./uwsgi.pid
####
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###
[loggers]
keys = root, dbas, transactions
[handlers]
keys = console, filelog
[formatters]
keys = generic
[logger_root]
#level = INFO
level = DEBUG
handlers = console, filelog
[logger_dbas]
level = DEBUG
handlers =
qualname = dbas
[logger_transactions]
level = WARN
handlers =
qualname = txn
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_filelog]
class = FileHandler
args = ('%(here)s/dbasrequest.log','a')
level = DEBUG
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s] [%(funcName)s] %(message)s