This repository was archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathsettings_example.py
More file actions
46 lines (37 loc) · 1.37 KB
/
settings_example.py
File metadata and controls
46 lines (37 loc) · 1.37 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
from __future__ import absolute_import
# 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/all.db',
# }
#
# 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': {
# 'dustin@mozilla.com': ['some.permission'],
},
}
# ===== Celery =====
# Any Celery configuration option can be included here; see
# http://docs.celeryproject.org/en/master/configuration.html#configuration
# CELERY_RESULT_DB_TABLENAMES = {
# 'task': 'relengapi_celery_taskmeta',
# 'group': 'relengapi_celery_groupmeta',
# }