use wsgiref as a default server, enable reloader, and add some comment on the server configuration
This commit is contained in:
parent
b0d7683e9c
commit
f94259564a
@ -2,16 +2,16 @@ from bottle import response
|
|||||||
|
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 11000
|
port = 11000
|
||||||
reloader = False
|
reloader = True
|
||||||
debug = False
|
debug = False
|
||||||
server = 'gunicorn' # default = 'wsgiref'
|
server = 'wsgiref' # try 'gunicorn'
|
||||||
|
|
||||||
session_opts = {
|
session_opts = {
|
||||||
'session.type': 'file',
|
'session.type': 'file',
|
||||||
'session.cookie_expires': 5*60, # Session expiration in seconds: minutes*seconds
|
'session.cookie_expires': 5*60, # Session expiration in seconds: minutes*seconds
|
||||||
'session.data_dir': './.beaker/data',
|
'session.data_dir': './.beaker/data',
|
||||||
'session.auto': True
|
'session.auto': True
|
||||||
}
|
} # beaker's session options
|
||||||
|
|
||||||
def enable_cors():
|
def enable_cors():
|
||||||
response.headers['Access-Control-Allow-Origin' ] = '*'
|
response.headers['Access-Control-Allow-Origin' ] = '*'
|
||||||
|
Loading…
Reference in New Issue
Block a user