forked from metabrainz/metabrainz.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_config.py.example
104 lines (76 loc) · 2.19 KB
/
custom_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
# -*- coding: utf-8 -*-
# CUSTOM CONFIGURATION
DEBUG = True # set to False in production mode
SECRET_KEY = "CHANGE_THIS"
# 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
# WePay
# https://www.wepay.com/developer/reference/account-id
WEPAY_ACCOUNT_ID = ""
# https://www.wepay.com/developer/reference/access-tokens
WEPAY_ACCESS_TOKEN = ""
# PayPal
PAYPAL_PRIMARY_EMAIL = "paypal@example.org"
PAYPAL_BUSINESS = "payment@example.org"
# Stripe
# https://stripe.com/docs/tutorials/dashboard#api-keys
STRIPE_KEYS = {
"SECRET": "",
"PUBLISHABLE": "",
}
STRIPE_TEST_KEYS = {
"SECRET": "",
"PUBLISHABLE": "",
}
# MUSICBRAINZ
# MusicBrainz Base URL must have a trailing slash.
MUSICBRAINZ_BASE_URL = "https://musicbrainz.org/"
MUSICBRAINZ_CLIENT_ID = ""
MUSICBRAINZ_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_EMAIL = {
# "mail_server": "localhost",
# "mail_port": 25,
# "mail_from_host": "example.org",
# "log_email_recipients": [
# "user1@example.org",
# "user2@example.org",
# ],
# "log_email_topic": "MetaBrainz Failure",
# "level": "ERROR", # optional
#}
#LOG_SENTRY = {
# "dsn": "YOUR_SENTRY_DSN",
# "level": "WARNING", # optional
#}
# OTHER STUFF
# 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
#BEHIND_GATEWAY = True
#REMOTE_ADDR_HEADER = "X-MB-Remote-Addr"
MAIL_FROM_DOMAIN = "example.org"