forked from MTG/metadb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.sample
53 lines (33 loc) · 1.12 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
DEBUG = True # set to False in production mode
SECRET_KEY = "CHANGE_ME"
# DATABASES
# Primary database
SQLALCHEMY_DATABASE_URI = "postgresql://metadb@/metadb"
# Database for testing
TEST_SQLALCHEMY_DATABASE_URI = "postgresql://mdb_test@/mdb_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"
PG_PORT = "5432"
# CACHE
MEMCACHED_SERVERS = ["127.0.0.1:11211"]
MEMCACHED_NAMESPACE = "MDB"
# LOGGING
#LOG_FILE_ENABLED = True
#LOG_FILE = "./metadb.log"
#LOG_EMAIL_ENABLED = True
#LOG_EMAIL_TOPIC = "Metadb Webserver Failure"
#LOG_EMAIL_RECIPIENTS = [] # List of email addresses (strings)
#LOG_SENTRY_ENABLED = True
#SENTRY_DSN = ""
# MISCELLANEOUS
#BEHIND_GATEWAY = True
#REMOTE_ADDR_HEADER = "X-Remote-Addr"
# Mail server
# These variables need to be defined if you enabled log emails.
#SMTP_SERVER = "localhost"
#SMTP_PORT = 25
#MAIL_FROM_DOMAIN = "metadb.s.upf.edu"
# Set to True if Less should be compiled in browser. Set to False if styling is pre-compiled.
COMPILE_LESS = True
FILE_STORAGE_DIR = "./files"