File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ [global]
2
+ server.socket_host = '0.0.0.0'
3
+ server.socket_timeout = 60 # increase timeout to 60s
4
+ server.thread_pool = 10 # default number of worker threads to start up in the pool
5
+ request.show_tracebacks = False
6
+ log.screen = False # turn off logging to console
7
+ tools.encode.on = True
8
+ tools.encode.encoding = 'utf-8'
Original file line number Diff line number Diff line change @@ -629,16 +629,12 @@ def updateCherrypyConf(args):
629
629
accesslog = os .path .join (path , 'cherrypy_access.log' )
630
630
errorlog = os .path .join (path , 'cherrypy_error.log' )
631
631
632
- globalConfig = {'global' : {'server.socket_host' : '0.0.0.0' ,
633
- 'server.socket_port' : args .port ,
634
- 'server.socket_timeout' : 60 , # increase timeout to 60s
635
- 'request.show_tracebacks' : False ,
636
- 'log.screen' : False , # turn off logging to console
632
+ globalConfig = {'global' : {'server.socket_port' : args .port ,
637
633
'log.access_file' : accesslog ,
638
- 'log.error_file' : errorlog ,
639
- 'tools.encode.on' : True ,
640
- 'tools.encode.encoding' : 'utf-8' }}
634
+ 'log.error_file' : errorlog }}
635
+
641
636
cherrypy .config .update (globalConfig )
637
+ cherrypy .config .update ('./mycherrypy.conf' )
642
638
643
639
644
640
def updateCherrypySslConf (args , certFile , keyFile ):
You can’t perform that action at this time.
0 commit comments