forked from metabrainz/listenbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.sample
59 lines (35 loc) · 1.26 KB
/
config.py.sample
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
DEBUG = False # set to False in production mode
SECRET_KEY = "CHANGE_ME"
# DATABASES
# Primary database
SQLALCHEMY_DATABASE_URI = "postgresql://listenbrainz@/listenbrainz"
# Database for testing
TEST_SQLALCHEMY_DATABASE_URI = "postgresql://lb_test@/lb_test"
# 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"
# KAFKA
KAFKA_CONNECT = "localhost:9092"
# CASSANDRA
CASSANDRA_SERVER = "localhost"
CASSANDRA_KEYSPACE = "listenbrainz"
# MusicBrainz OAuth
MUSICBRAINZ_CLIENT_ID = "CLIENT_ID"
MUSICBRAINZ_CLIENT_SECRET = "CLIENT_SECRET"
# MESSYBRAINZ
MESSYBRAINZ_SUBMIT_URL = "http://messybrainz.org/submit"
MESSYBRAINZ_TIMEOUT = 5 # seconds
# LOGGING
#LOG_FILE_ENABLED = True
#LOG_FILE = "./listenbrainz.log"
#LOG_EMAIL_ENABLED = True
#LOG_EMAIL_TOPIC = "ListenBrainz Webserver Failure"
#LOG_EMAIL_RECIPIENTS = [] # List of email addresses (strings)
#LOG_SENTRY_ENABLED = True
#SENTRY_DSN = ""
# CASSANDRA CONSUMER LOGGING
#CASSANDRA_CONSUMER_LOG_FILE_ENABLED = True
#CASSANDRA_CONSUMER_LOG_FILE = "./cassandra_consumer.log"
# MISCELLANEOUS
# Set to True if Less should be compiled in browser. Set to False if styling is pre-compiled.
COMPILE_LESS = True