forked from metabrainz/acousticbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.example
77 lines (56 loc) · 1.83 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
import os
DEBUG = False # set to False in production mode
# Additional files to watch to restart the development server
RELOAD_ON_FILES = ["webserver/static/build/rev-manifest.json"]
SECRET_KEY = "CHANGE_ME"
# DATABASES
# Primary database
SQLALCHEMY_DATABASE_URI = "postgresql://acousticbrainz@db/acousticbrainz"
# URI to connect to an empty database as the superuser
POSTGRES_ADMIN_URI = "postgresql://postgres@db/template1"
# URI to connect to the acousticbrainz database as the superuser (to install extensions)
POSTGRES_ADMIN_AB_URI = "postgresql://postgres@db/acousticbrainz"
# MUSICBRAINZ
MUSICBRAINZ_USERAGENT = "acousticbrainz-server"
MUSICBRAINZ_HOSTNAME = None
# OAuth
MUSICBRAINZ_CLIENT_ID = "CHANGE_ME"
MUSICBRAINZ_CLIENT_SECRET = "CHANGE_ME"
# CACHE
REDIS_HOST = "redis"
REDIS_PORT = 6379
REDIS_NAMESPACE = "AB"
REDIS_NS_VERSIONS_LOCATION = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'cache_namespaces')
# RATE LIMITING
# set a limit of per_ip requests per window seconds per unique ip address
RATELIMIT_PER_IP = 100
RATELIMIT_WINDOW = 10
# LOGGING
# Uncomment any of the following logging stubs if you want to enable logging
# during development. In general you shouldn't need to do this.
# LOG_FILE = {
# 'filename': './acousticbrainz.log',
# 'max_bytes': 512 * 1024, # optional
# 'backup_count': 10, # optional
# }
# LOG_EMAIL = {
# 'mail_server': 'localhost',
# 'mail_port': 25,
# 'mail_from_host': 'acousticbrainz.org',
# 'log_email_recipients': [
# '',
# ],
# 'log_email_topic': 'AcousticBrainz Error',
# 'level': 'ERROR',
# }
# LOG_SENTRY = {
# 'dsn':'',
# 'environment': 'development',
# 'level': 'ERROR',
# }
# MISCELLANEOUS
DATASET_DIR = "/data/datasets"
FILE_STORAGE_DIR = "/data/files"
#Feature Flags
FEATURE_EVAL_LOCATION = False
DEBUG_TB_INTERCEPT_REDIRECTS = False