-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
default_config.py
79 lines (64 loc) · 1.9 KB
/
default_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
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
# DEFAULT CONFIGURATION
DEBUG = False
SECRET_KEY = "CHANGE_THIS"
# Database
SQLALCHEMY_DATABASE_URI = "postgresql://critiquebrainz:critiquebrainz@db:5432/critiquebrainz"
SQLALCHEMY_TRACK_MODIFICATIONS = False
# BookBrainz Database
BB_DATABASE_URI = "postgresql://bookbrainz:bookbrainz@db:5432/bookbrainz"
# MusicBrainz Database
MB_DATABASE_URI = "postgresql://musicbrainz:musicbrainz@musicbrainz_db:5432/musicbrainz_db"
# Redis
REDIS_HOST = "critiquebrainz_redis"
REDIS_PORT = 6379
REDIS_NAMESPACE = "CB"
# CritiqueBrainz OAuth configuration
OAUTH_TOKEN_LENGTH = 40
OAUTH_GRANT_EXPIRE = 60
OAUTH_TOKEN_EXPIRE = 3600
# Mail server
MAIL_SERVER = "localhost"
MAIL_PORT = 25
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_FROM_ADDR = "[email protected]"
# List of supported UI languages.
# Valid language codes can be obtained from Transifex.
SUPPORTED_LANGUAGES = [
'en', # English
'he', # עברית, Hebrew
'hr', # Croatian
'nl', # Dutch
'et', # Estonian
'fi', # Finnish
'fr', # French
'de', # German
'it', # Italian
'nb', # Norwegian Bokmål
'pl', # Polish
'es', # Spanish
'sv', # Swedish
'ru', # Russian
]
# Maximum number of popular reviews to fetch for index
POPULAR_REVIEWS_LIMIT = 6
# List of administrators (MusicBrainz usernames as strings)
ADMINS = []
# Email address to send notifications of reported reviews to
ADMIN_NOTIFICATION_EMAIL_ADDRESS = None
# MusicBrainz
MUSICBRAINZ_HOSTNAME = None
MUSICBRAINZ_USERAGENT = "CritiqueBrainz"
MUSICBRAINZ_CLIENT_ID = ""
MUSICBRAINZ_CLIENT_SECRET = ""
MUSICBRAINZ_OAUTH_URL = ""
# Spotify
SPOTIFY_CLIENT_ID = ""
SPOTIFY_CLIENT_SECRET = ""
# mbspotify
# https://github.com/metabrainz/mbspotify
MBSPOTIFY_BASE_URI = "https://mbspotify.musicbrainz.org/"
MBSPOTIFY_ACCESS_KEY = None
# Flask Debug redirect
# Set to True if you want Flask-Debug to intercept redirects
DEBUG_TB_INTERCEPT_REDIRECTS = False