-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpartridge.cfg.sample
More file actions
41 lines (36 loc) · 1.38 KB
/
partridge.cfg.sample
File metadata and controls
41 lines (36 loc) · 1.38 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
38
39
40
41
#Partridge server config
DEBUG = True
#database settings
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/test.db"
#You need mysql-python installed for this to work
#SQLALCHEMY_DATABASE_URI = "mysql://root:password@localhost/partridge"
#Upload directory
PAPER_UPLOAD_DIR = "/path/to/your/partridge/data/upload"
#Processed paper directory
PAPER_PROC_DIR = "/path/to/your/partridge/data/processed"
#work directory - where papers being processed currently are stored
PAPER_WORK_DIR = "/path/to/your/partridge/data/working"
#set the model directory
MODELS_DIR = "/path/to/your/partridge/models"
#
#
# Configuration values for preprocessor notifications
#
NOTIFICATION_SMTP_SERVER = "smtp.yourdomain.com"
NOTIFICATION_SMTP_USER = "uploadbot@yourdomain.com"
NOTIFICATION_SMTP_PASWD = "top_secret_password"
NOTIFICATION_ADDRESS = "youremail@host.com"
NOTIFICATION_FROM = "uploadbot@papro.org.uk"
#Processing server stuff
PP_LISTEN_ADDRESS = "0.0.0.0"
PP_LISTEN_PORT = 1234
PP_AUTH_KEY = "topsecretkey"
#number of paper processing threads to run
PP_LOCAL_WORKER = True #if true, runs a set of local workers for processing
PP_WORKERS = 1 #set to None to automatically match your CPU cores
#Twitter stuff
TWITTER_ENABLED = False
TWITTER_CONSUMER_KEY = "yourconsumerkey"
TWITTER_CONSUMER_SECRET = "yoursecretkey"
TWITTER_OAUTH_TOKEN = "twitteraccountoauth"
TWITTER_OAUTH_SECRET = "twitteraccountoauthsecret"