Disable post size limit. Increase socket timeout

master
inpos 2018-08-15 10:47:05 +03:00
parent d25ed424ea
commit cd9ce87394
1 changed files with 10 additions and 1 deletions

View File

@ -3,13 +3,22 @@ import cherrypy
from orun import js
from orun import app
config = {
'global' : {
'server.max_request_body_size' : 0,
'server.socket_timeout' : 60
}
}
class Application(app.Application):
def index(self):
return 'Orun application server is running'
index.exposed = True
def run(self, port=8080, config=None):
def run(self, port=8080, user_config=None):
super(Application, self).run()
if user_config:
config.update(user_config)
cherrypy.quickstart(self, '/', config)
class JsManager(object):