-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdevelop.ini
142 lines (110 loc) · 2.83 KB
/
develop.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#
# Develop.ini for development environment gunicorn
# Uses simple JSON document for management of test users.
# See occams:sample.ini for more information about specific settings
# DO NOT USE FOR PRODUCTION
[app:main]
use = egg:occams
filter-with = who
pyramid.debug_all = true
pyramid.reload_templates = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
debugtoolbar.hosts = 0.0.0.0/0
redis.url = redis://redis:6379/0
webassets.debug = true
webassets.auto_build = true
who.config_file = %(__file__)s
who.identifier_id = plugins:auth_tkt
redis.sessions.url = %(redis.url)s
redis.sessions.secret = sekrit
redis.sessions.prefix = occams-session:
redis.sessions.timeout = 36000
sqlalchemy.url = postgresql://occams:occams@postgres/occams
occams.org.name = dev
occams.org.title = Test Orgnaization
occams.groups =
celery.broker.url = %(redis.url)s
celery.backend.url = %(redis.url)s
# Blame user for celery database connection
celery.blame = celery@localhost
studies.blob.dir = /files/blobs
studies.export.dir = /files/exports
[filter:who]
use = egg:repoze.who#config
config_file = %(__file__)s
[general]
request_classifier = repoze.who.classifiers:default_request_classifier
challenge_decider = repoze.who.classifiers:default_challenge_decider
remote_user_key = REMOTE_USER
[identifiers]
plugins =
auth_tkt
[authenticators]
plugins =
auth_tkt
dev_users
[mdproviders]
plugins =
dev_properties
dev_groups
[challengers]
plugins =
redirector;browser
[plugin:redirector]
use = repoze.who.plugins.redirector:make_plugin
login_url = /login
came_from_param = referrer
[plugin:auth_tkt]
# identification and authentication
use = repoze.who.plugins.auth_tkt:make_plugin
secret = AUTH_SPECIFIC_TOKEN
cookie_name = auth_tkt
secure = False
include_ip = True
timeout = 3600
reissue_time = 360
[plugin:dev_users]
use = who_dev:JSONAuthenticatorPlugin
# Test users, modify as needed and restart app service
data = {
"develop@localhost.local": {
"password": "develop",
"properties": {"first_name": "Developer", "last_name": "User", "email": "develop@localhost.local"},
"groups": ["member", "administrator"]
}
}
[plugin:dev_properties]
use = who_dev:JSONPropertiesPlugin
source_key = properties
[plugin:dev_groups]
use = who_dev:JSONPropertiesPlugin
source_key = groups
[loggers]
keys = root, sqlalchemy, webassets, occams
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_occams]
level = DEBUG
handlers =
qualname = occams
[logger_webassets]
level = INFO
handlers =
qualname = webassets
[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s