2023-06-18 15:34:09 +07:00
|
|
|
from config import directory
|
2023-01-30 20:09:40 +07:00
|
|
|
|
2022-03-16 11:06:52 +07:00
|
|
|
update = {
|
2023-01-30 20:09:40 +07:00
|
|
|
'server.socket_host' : "hostname" ,
|
|
|
|
'server.socket_port' : "port" ,
|
|
|
|
'cors.expose.on' : True ,
|
|
|
|
'tools.sessions.on' : True ,
|
|
|
|
'engine.autoreload.on' : False ,
|
|
|
|
'request.show_tracebacks' : False ,
|
2023-08-22 20:50:12 +07:00
|
|
|
'error_page.403' : directory.erpadir(403) ,
|
|
|
|
'error_page.404' : directory.erpadir(404) ,
|
|
|
|
'error_page.500' : directory.erpadir(500) ,
|
|
|
|
'server.max_request_body_size' : 800 * 1024 * 1024 , # 800MB; Default 100MB
|
|
|
|
'server.socket_timeout' : 60 , # Default 10s
|
|
|
|
'response.timeout' : 3600 , # Default 300s
|
2022-03-16 11:06:52 +07:00
|
|
|
}
|