-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathconfig.py
More file actions
37 lines (31 loc) · 1.08 KB
/
config.py
File metadata and controls
37 lines (31 loc) · 1.08 KB
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
import os
# MONGODB CONFIG
AUTH = True
USERNAME = 'LOCAL_DB_USERNAME'
PASSWORD = 'LOCAL_DB_PASSWORD'
# CENTRAL MONGODB SERVER
CT_SERVER = 'CENTRAL_DB_ADDRESS'
CT_DB_NAME = 'CENTRAL_DB_NAME'
CT_AUTH = True
CT_USERNAME = 'CENTRAL_DB_USERNAME'
CT_PASSWORD = 'CENTRAL_DB_USERNAME'
# Directory structure config vars
BASEDIR = os.path.abspath(os.path.dirname(__file__))
LOGDIR = BASEDIR + '/out'
DATADIR = BASEDIR + '/data'
# Flask config vars
DEBUG = False
SECRET_KEY = 'This key will be replaced with a secure key in production.'
CSRF_ENABLED = True
CSRF_SECRET_KEY = 'willbereplacedinproduction'
# STACKS config info
VERSION = '2.0'
DESC = 'STACKS - Social Media Tracker, Aggregator, and Collector Kit'
DEFAULT_ROLE = 0 # by default, users aren't admins
NETWORKS = ['twitter', 'facebook'] # networks that STACKS is set to work for
# Celery config info - queues & routes are added dynamically
CELERY_BROKER_URL = 'amqp://'
CELERY_RESULT_BACKEND = 'amqp'
CELERY_QUEUES = ()
CELERY_ROUTES = {}
# CELERY_REDIRECT_STDOUTS = False # We handle stdout/err/in logging ourselves, so don't want Celery taking over