forked from sagemath/sagecell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sagecell_config_default.py
65 lines (52 loc) · 978 Bytes
/
sagecell_config_default.py
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
# Set the path to Sage here:
sage=''
if sage=='':
import os
sage=os.environ['SAGE_ROOT']+'/sage '
python=sage+' -python'
# DATABASE
db='sqlalchemy'
fs=db
# SQLAlchemy
sqlalchemy_config={
'uri': 'sqlite:///sqlite.db'
}
# MONGODB
mongo_config={
'mongo_uri': 'mongodb://localhost',
'mongo_db': 'sagecelldb'
}
# WEB SERVER
webserver='flaskweb'
#webserver='twistd'
#webserver='uwsgi'
flaskweb_config={
'port': 8080,
'processes': 20,
'host': '127.0.0.1'
}
twistd=sage+' -twistd'
twistd_config={
'port': 8080,
}
uwsgi='./uwsgi'
uwsgi_config={
'processes': 50,
'listen': 500,
'disable-logging': '',
'socket': '/tmp/uwsgi.sock',
}
# DEVICE
device_config={
'workers': 5,
'quiet': '',
'python': python,
'untrusted-account': 'localhost',
'untrusted-python': python,
'untrusted-cpu': -1, # seconds
'untrusted-mem': -1, # megabytes
}
flask_config={
'max_files': 10,
}
LOGGING=True