CostaCoffe/config/server.py
2023-11-04 19:12:11 +07:00

21 lines
879 B
Python

from config import directory
update = {
'server.socket_host' : "hostname" ,
'server.socket_port' : "port" ,
'cors.expose.on' : True ,
'tools.sessions.on' : True ,
'engine.autoreload.on' : False ,
'request.show_tracebacks' : False ,
'error_page.403' : f'{directory.page["error"]}/403.html' ,
'error_page.404' : f'{directory.page["error"]}/404.html' ,
'error_page.500' : f'{directory.page["error"]}/500.html' ,
'server.max_request_body_size' : 800 * 1024 * 1024 , # 800MB; Default 100MB
'server.socket_timeout' : 60 , # Default 10s
'response.timeout' : 3600 , # Default 300s
}