forked from Zenysis/Harmony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global_config.py
46 lines (36 loc) · 1.65 KB
/
global_config.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
42
43
44
45
46
import os
# Flask
# We use Flask as our main Python back end that serves up everything. The secret key
# is needed to keep the client-side sessions secure. You can generate
# a random key and set it here.
DEFAULT_SECRET_KEY = 'abc123'
# Mailgun settings
# Mailgun is the email API we use. You can sign up here: https://signup.mailgun.com/new/signup
# Other mail APIs can work as well, such as Twilio
MAILGUN_API_KEY = 'key-xxx'
MAILGUN_NAME = 'mg.hostname.com'
MAILGUN_SENDER = '[email protected]'
# URL of your Druid instance
# Druid is a real time analytics data base. We use it to store all of our
# analytical data (i.e. data that can be queried in AQT).
DRUID_HOST = os.getenv('DRUID_HOST')
# Phabricator settings
# We use Passphrase to store credentials. Any other credential manager can
# be used instead by substituting all Passphrase usages with another service.
PASSPHRASE_ENDPOINT = 'https://phab.hostname.com/api/passphrase.query'
# Mail
# These are the emails for newly generated alert notifications for a list of recipients
NOREPLY_EMAIL = '[email protected]'
SUPPORT_EMAIL = '[email protected]'
RENDERBOT_EMAIL = '[email protected]'
DATA_UPLOAD_DEFAULT_NOTIFY = ['[email protected]', '[email protected]']
# In order to read and write from google sheet you will need proper authorization.
# https://developers.google.com/identity/protocols/oauth2
GOOGLE_SERVICE_SECRET_CREDENTIAL = ''
# Postgres stores all users, dashboards, etc.
POSTGRES_DB_URI = os.getenv('DATABASE_URL')
# in-memory key-value store (used by web to persist things like
# access keys across worker threads)
REDIS_HOST = 'redis'
# Hasura host
HASURA_HOST = 'http://hasura:8080'