forked from metabrainz/metabrainz.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.example
107 lines (80 loc) · 2.44 KB
/
config.py.example
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
# -*- coding: utf-8 -*-
# CUSTOM CONFIGURATION
DEBUG = True # set to False in production mode
SECRET_KEY = "CHANGE_THIS"
# DATABASE
SQLALCHEMY_DATABASE_URI = "postgresql://metabrainz:metabrainz@db:5432/metabrainz"
SQLALCHEMY_TRACK_MODIFICATIONS = False
POSTGRES_ADMIN_URI = "postgresql://postgres:postgres@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": "paypal-usd@example.org",
"EUR": "paypal-eur@example.org",
}
PAYPAL_BUSINESS = "payment@example.org"
# Stripe
# https://stripe.com/docs/tutorials/dashboard#api-keys
STRIPE_KEYS = {
"SECRET": "",
"PUBLISHABLE": "",
"WEBHOOK_SECRET": ""
}
# if developing payment integration locally, change this to your localhost url
SERVER_BASE_URL = "https://metabrainz.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 = [
# "admin@example.org",
]
# 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