2007-07-16 20:22:38 +00:00
|
|
|
import cherrypy
|
|
|
|
|
|
|
|
|
2007-09-20 20:36:19 +00:00
|
|
|
MEGABYTE = 1024 * 1024
|
|
|
|
|
|
|
|
|
2007-07-16 20:22:38 +00:00
|
|
|
settings = {
|
|
|
|
"global": {
|
2007-08-01 20:24:46 +00:00
|
|
|
"server.socket_port": 8081,
|
2007-07-16 20:22:38 +00:00
|
|
|
"server.environment": "production",
|
|
|
|
"session_filter.on": True,
|
|
|
|
"session_filter.storage_type": "file",
|
|
|
|
"session_filter.storage_path": "session",
|
|
|
|
"session_filter.timeout": 60 * 72, # 72 hours
|
|
|
|
"session_filter.clean_up_delay": 5,
|
2007-07-25 20:04:24 +00:00
|
|
|
"session_filter.locking": "implicit",
|
2007-07-16 20:22:38 +00:00
|
|
|
"encoding_filter.on": True,
|
|
|
|
"encoding_filter.encoding": "utf-8",
|
|
|
|
"decoding_filter.on": True,
|
|
|
|
"decoding_filter.encoding": "utf-8",
|
2007-08-02 18:52:20 +00:00
|
|
|
"luminotes.http_url": "",
|
2007-08-02 04:01:11 +00:00
|
|
|
"luminotes.https_url": "",
|
2007-08-03 19:29:20 +00:00
|
|
|
"luminotes.http_proxy_ip": "127.0.0.1",
|
|
|
|
"luminotes.https_proxy_ip": "127.0.0.2",
|
2007-10-31 23:33:09 +00:00
|
|
|
"luminotes.support_email": "",
|
2008-01-22 20:31:36 +00:00
|
|
|
"luminotes.payment_email": "",
|
2007-09-20 20:36:19 +00:00
|
|
|
"luminotes.rate_plans": [
|
|
|
|
{
|
2007-12-11 01:15:03 +00:00
|
|
|
"name": "free",
|
2007-09-20 20:36:19 +00:00
|
|
|
"storage_quota_bytes": 30 * MEGABYTE,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": False,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": None,
|
2007-12-11 01:15:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "basic",
|
|
|
|
"storage_quota_bytes": 250 * MEGABYTE,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": True,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": 5,
|
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-09-20 20:36:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "standard",
|
2007-12-11 01:15:03 +00:00
|
|
|
"storage_quota_bytes": 500 * MEGABYTE,
|
2007-12-11 02:58:31 +00:00
|
|
|
"notebook_collaboration": True,
|
2008-01-10 08:33:19 +00:00
|
|
|
"fee": 9,
|
|
|
|
"button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-09-20 20:36:19 +00:00
|
|
|
},
|
2008-01-10 08:33:19 +00:00
|
|
|
# {
|
|
|
|
# "name": "premium",
|
|
|
|
# "storage_quota_bytes": 2000 * MEGABYTE,
|
|
|
|
# "notebook_collaboration": True,
|
|
|
|
# "fee": 19,
|
2008-01-11 01:33:52 +00:00
|
|
|
# "button":
|
|
|
|
# """
|
|
|
|
# """,
|
2008-01-10 08:33:19 +00:00
|
|
|
# },
|
2007-09-20 20:36:19 +00:00
|
|
|
],
|
2008-01-10 23:15:37 +00:00
|
|
|
"luminotes.unsubscribe_button":
|
|
|
|
"""
|
|
|
|
""",
|
2007-07-16 20:22:38 +00:00
|
|
|
},
|
2008-02-06 01:34:12 +00:00
|
|
|
"/files/upload": {
|
2008-01-31 21:52:32 +00:00
|
|
|
"stream_response": True
|
|
|
|
},
|
2007-07-16 20:22:38 +00:00
|
|
|
}
|