Repository navigation
Expand file tree
/
Copy pathTheLMA.ini
More file actions
103 lines (87 loc) · 2.12 KB
/
Copy pathTheLMA.ini
File metadata and controls
103 lines (87 loc) · 2.12 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
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
[DEFAULT]
debug = true
db_server = raven
db_port = 5432
# Do not connect to the production database with the admin's password
db_user = thelma
# Do not store the admin's password in SVN
db_password = secret
db_name = unidb
[app:thelma]
use = egg:TheLMA#app
reload_templates = true
debug_authorization = false
debug_notfound = false
debug_templates = true
default_locale_name = en
db_string = postgresql://%(db_user)s:%(db_password)s@%(db_server)s:%(db_port)s/%(db_name)s
#db_string = sqlite:///%(here)s/thelma.db
#db_string = sqlite:///:memory:
public_dir = %(here)s/public
public_cache_max_age = 3600
pyramid.includes = pyramid_tm
#pyramid.includes = pyramid_exclog
tractor_config_file = %(here)s/tractor.ini
tm.commit_veto = everest.repositories.utils.commit_veto
[filter:who]
use = egg:repoze.who#config
config_file = %(here)s/who.ini
#log_file = stdout
#log_level = debug
[pipeline:main]
pipeline =
egg:Paste#evalerror
egg:thelma#flexfilter
who
thelma
[server:main]
# Paste http server
use = egg:Paste#http
host = 0.0.0.0
port = 6543
threadpool_workers = 10
threadpool_hung_thread_limit = 5
threadpool_kill_thread_limit = 20
threadpool_spawn_if_under = 1
threadpool_max_zombie_threads_before_die = 2
threadpool_hung_check_period = 1
threadpool_dying_limit = 10
# gunicorn server
#use = egg:gunicorn#main
#host = 0.0.0.0
#port = 6543
# Logging configuration
[loggers]
keys = root, thelma, sqlqalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = console
[logger_thelma]
level = DEBUG
handlers =
qualname = thelma
[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine
propagate = 0
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_file]
class = handlers.RotatingFileHandler
args = ('thelma.log', 'a', 1000000, 20)
level = INFO
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S