blob: 15cedcbcfd5a6a8700405f1e14184fd04bb7b936 (
plain)
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
|
#Rename this file as config.py
DB_NAME_DEFAULT = 'r_on_cloud'
DB_USER_DEFAULT = 'root'
DB_PASS_DEFAULT = 'root'
DB_HOST_DEFAULT = ''
DB_PORT_DEFAULT = ''
BIN = '/usr/bin/R' # Path of R bin file
API_URL = "http://127.0.0.1:8001/rscript"
API_URL_PLOT = "http://127.0.0.1:8001/file"
API_URL_UPLOAD = "http://127.0.0.1:8001/upload"
ALLOWED_HOST_IP = ['127.0.0.1']
TORNADO_IP = '0.0.0.0'
TORNADO_PORT = '8000' # default port
SECRET_KEY_STRING = SECRET_KEY
# request_count keeps track of the number of requests at hand, it is incremented
# when post method is invoked and decremented before exiting post method in
# class ExecutionHandler.
DEFAULT_TORNADO_WORKERS = 1
DEFAULT_REQUEST_COUNT = 1
|