costapy/config/server.py

23 lines
520 B
Python
Raw Permalink Normal View History

2024-05-12 02:18:32 +07:00
host = "localhost"
port = 15001
reloader = False
debug = False
server = 'gunicorn' # default = 'wsgiref'
2024-06-13 12:43:46 +07:00
session_opts = {
'session.type': 'file',
'session.cookie_expires': 5*60, # Session expiration in seconds: minutes*seconds
2024-06-30 14:32:42 +07:00
'session.data_dir': './.beaker/data',
2024-06-13 12:43:46 +07:00
'session.auto': True
}
2024-05-12 02:18:32 +07:00
# cors
2023-11-04 19:12:11 +07:00
2024-05-12 02:18:32 +07:00
# error page 403
# error page 404
# error page 500
2023-11-04 19:12:11 +07:00
2024-05-12 02:18:32 +07:00
# max_request_body_size = 800 * 1024 * 1024 , # Multiply for 800MB result
# socket timeout = 60
# response timeout = 3600