-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathconfig.py.example
More file actions
152 lines (121 loc) · 3.68 KB
/
config.py.example
File metadata and controls
152 lines (121 loc) · 3.68 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
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
143
144
145
146
147
148
149
150
151
152
from os import path
# CUSTOM CONFIGURATION
DEBUG = True # set to False in production mode
SECRET_KEY = "CHANGE_THIS"
# DATABASE
SQLALCHEMY_DATABASE_URI = "postgresql://metabrainz:metabrainz@meb_db:5432/metabrainz"
SQLALCHEMY_MUSICBRAINZ_URI = ""
SQLALCHEMY_TRACK_MODIFICATIONS = False
POSTGRES_ADMIN_URI = "postgresql://postgres:postgres@meb_db/postgres"
# DATABASES
# The name of a postgres user who has superuser privileges. Your local user should
# be able to connect to the database with this user.
PG_SUPER_USER = "postgres"
# The port that postgres is running on
PG_PORT = "5432"
# PAYMENTS
PAYMENT_PRODUCTION = False # set to False to use testing environments for donations
# PayPal
PAYPAL_ACCOUNT_IDS = {
"USD": "[email protected]",
"EUR": "[email protected]",
}
PAYPAL_BUSINESS = "[email protected]"
# Stripe
# https://stripe.com/docs/tutorials/dashboard#api-keys
STRIPE_KEYS = {
"USD": {
"SECRET": "",
"PUBLISHABLE": "",
"WEBHOOK_SECRET": ""
},
"EUR": {
"SECRET": "",
"PUBLISHABLE": "",
"WEBHOOK_SECRET": ""
}
}
# if developing payment integration locally, change this to your localhost url
SERVER_BASE_URL = "http://localhost:8000"
MUSICBRAINZ_SERVER = "https://beta.musicbrainz.org"
# REDIS
REDIS = {
"host": "redis",
"port": 6379,
"namespace": "MEB",
}
# MUSICBRAINZ
# MusicBrainz Base URL must have a trailing slash.
MUSICBRAINZ_BASE_URL = "https://musicbrainz.org/"
MUSICBRAINZ_CLIENT_ID = ""
MUSICBRAINZ_CLIENT_SECRET = ""
# QUICKBOOKS OAUTH -- only needed if you ever want to create invoices. (read: never)
QUICKBOOKS_SANDBOX = True
QUICKBOOKS_CALLBACK_URL = "https://metabrainz.org/quickbooks/callback"
QUICKBOOKS_CLIENT_ID = ""
QUICKBOOKS_CLIENT_SECRET = ""
# ADMIN SECTION
# This is a list of MusicBrainz usernames of people that are allowed to access
# admin section of the website. Usernames are case-sensetive!
ADMINS = [
#"Example",
]
# LOGGING
#LOG_FILE = {
# "filename": "./logs/log.txt",
# "max_bytes": 512 * 1024, # optional
# "backup_count": 100, # optional
#}
#LOG_SENTRY = {
# "dsn": "YOUR_SENTRY_DSN",
# "level": "WARNING", # optional
#}
# Mail server
SMTP_SERVER = "metabrainz-mail"
SMTP_PORT = 25
MAIL_FROM_DOMAIN = "metabrainz.org"
# OTHER STUFF
DEBUG_TB_INTERCEPT_REDIRECTS = False
# reCAPTCHA (https://www.google.com/recaptcha/)
RECAPTCHA_PUBLIC_KEY = ""
RECAPTCHA_PRIVATE_KEY = ""
# List of email addresses
NOTIFICATION_RECIPIENTS = [
# "[email protected]",
]
# See http://flask.pocoo.org/docs/0.10/config/#builtin-configuration-values
#PREFERRED_URL_SCHEME = "https"
#USE_COMPILED_STYLING = True
USE_NGINX_X_ACCEL = False
OAUTH2_BLUEPRINT_PREFIX = "/oauth2"
OAUTH2_ACCESS_TOKEN_GENERATOR = "oauth.generator.create_access_token"
OAUTH2_REFRESH_TOKEN_GENERATOR = "oauth.generator.create_refresh_token"
OAUTH2_TOKEN_EXPIRES_IN = {
"authorization_code": 3600,
"implicit": 3600,
"client_credentials": 3600,
}
OAUTH2_AUTHORIZATION_CODE_EXPIRES_IN = 600
OAUTH2_WHITELISTED_CCG_CLIENTS = []
OIDC_ID_TOKEN_EXPIRATION = 3600
# DANGER: DO NOT USE THESE VALUES IN PRODUCTION
OIDC_JWT_PRIVATE_KEY = {
"alg": "P-256",
"kty": "EC",
"kid": "[email protected]",
"use": "sig",
"crv": "P-256",
"x": "Ze2loSV3wrroKUN_4zhwGhCqo3Xhu1td4QjeQ5wIVR0",
"y": "HlLtdXARY_f55A3fnzQbPcm6hgr34Mp8p-nuzQCE0Zw",
"d": "r_kHyZ-a06rmxM3yESK84r1otSg-aQcVStkRhA-iCM8"
}
OIDC_JWT_PUBLIC_KEY = {
"alg": "P-256",
"kty": "EC",
"kid": "[email protected]",
"use": "sig",
"crv": "P-256",
"x": "Ze2loSV3wrroKUN_4zhwGhCqo3Xhu1td4QjeQ5wIVR0",
"y": "HlLtdXARY_f55A3fnzQbPcm6hgr34Mp8p-nuzQCE0Zw",
}
STATIC_RESOURCES_DIR = path.join(path.dirname(__file__), 'frontend')