forked from mozilla/build-relengapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_example.py
41 lines (34 loc) · 1.33 KB
/
settings_example.py
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# RelengAPI can use multiple databases when several blueprints are installed. Each is
# configured with a key in this dictionary. For example:
#
# SQLALCHEMY_DATABASE_URIS = {
# 'relengapi': 'sqlite:////tmp/relengapi.db',
# 'clobberer': 'sqlite:////tmp/clobberer.db',
# # .. add other database URIs here, as appropriate for the blueprints
# }
#
# You can use any SQLAlchemy-style database URI. The default, if no URI
# configuration is present, is to use '*.db' files in the directory containing
# the RelengAPI source code.
# set to True to log SQLAlchemy engine activities (very verbose!)
# SQLALCHEMY_DB_LOG = False
# ===== Authentication and Authorization =====
RELENGAPI_AUTHENTICATION = {
# use the default, browserid:
'type': 'browserid',
# .. or based on a header from a proxy:
# 'type': 'external',
# 'header': 'Remote-User',
}
RELENGAPI_PERMISSIONS = {
'type': 'static',
'permissions': {
# '[email protected]': ['some.permission'],
},
}
# ===== Celery =====
# Any Celery configuration option can be included here; see
# http://docs.celeryproject.org/en/master/configuration.html#configuration