
from dope import app
import cherrypy

# graft to tree root
cherrypy.tree.graft(app)

# configure
cherrypy.config.update({
	'server.socket_port': 80,
	'server.socket_host': '0.0.0.0',
	'run_as_user': 'nobody',
	'run_as_group': 'nogroup',
})

cherrypy.config.update('dope_cherry.cfg')

# drop priviledges
cherrypy.process.plugins.DropPrivileges(cherrypy.engine, uid = cherrypy.config['run_as_user'], gid = cherrypy.config['run_as_group']).subscribe()


from dope import app
import cherrypy

# graft to tree root
cherrypy.tree.graft(app)

# configure
cherrypy.config.update({
	'server.socket_port': 80,
	'server.socket_host': '0.0.0.0',
	'server.max_request_body_size': 0, # unlimited
	'run_as_user': 'nobody',
	'run_as_group': 'nogroup',
})

cherrypy.config.update('dope_cherry.cfg')

# drop priviledges
cherrypy.process.plugins.DropPrivileges(cherrypy.engine, uid = cherrypy.config['run_as_user'], gid = cherrypy.config['run_as_group']).subscribe()

Set server.max_request_body_size in cherrypy settings to allow more then 100M uploads.
Set server.max_request_body_size in cherrypy settings to allow more then 100M uploads.

  
  from dope import app
  import cherrypy
  
  # graft to tree root
  cherrypy.tree.graft(app)
  
  # configure
  cherrypy.config.update({
  	'server.socket_port': 80,
  	'server.socket_host': '0.0.0.0',
+ 	'server.max_request_body_size': 0, # unlimited
  	'run_as_user': 'nobody',
  	'run_as_group': 'nogroup',
  })
  
  cherrypy.config.update('dope_cherry.cfg')
  
  # drop priviledges
  cherrypy.process.plugins.DropPrivileges(cherrypy.engine, uid = cherrypy.config['run_as_user'], gid = cherrypy.config['run_as_group']).subscribe()
  
Set server.max_request_body_size in cherrypy settings to allow more then 100M uploads.
## Code Before:

from dope import app
import cherrypy

# graft to tree root
cherrypy.tree.graft(app)

# configure
cherrypy.config.update({
	'server.socket_port': 80,
	'server.socket_host': '0.0.0.0',
	'run_as_user': 'nobody',
	'run_as_group': 'nogroup',
})

cherrypy.config.update('dope_cherry.cfg')

# drop priviledges
cherrypy.process.plugins.DropPrivileges(cherrypy.engine, uid = cherrypy.config['run_as_user'], gid = cherrypy.config['run_as_group']).subscribe()

## Instruction:
Set server.max_request_body_size in cherrypy settings to allow more then 100M uploads.
## Code After:

from dope import app
import cherrypy

# graft to tree root
cherrypy.tree.graft(app)

# configure
cherrypy.config.update({
	'server.socket_port': 80,
	'server.socket_host': '0.0.0.0',
	'server.max_request_body_size': 0, # unlimited
	'run_as_user': 'nobody',
	'run_as_group': 'nogroup',
})

cherrypy.config.update('dope_cherry.cfg')

# drop priviledges
cherrypy.process.plugins.DropPrivileges(cherrypy.engine, uid = cherrypy.config['run_as_user'], gid = cherrypy.config['run_as_group']).subscribe()
