oidc working again (getting less info to limit cookie size)
This commit is contained in:
@@ -26,7 +26,6 @@ def _start_initial_recorder_state_update(run_in_thread=True):
|
||||
async_permanent_cron_recorder_checker.check_object_state() # initial check of all recorders
|
||||
|
||||
|
||||
|
||||
def _create_and_start_default_scheduler():
|
||||
print("Starting Scheduler")
|
||||
scheduler = get_default_scheduler()
|
||||
@@ -48,14 +47,23 @@ def main():
|
||||
add_test_recorder()
|
||||
|
||||
print(app.config.get("SERVER_NAME", None))
|
||||
server_name = app.config.get("SERVER_NAME", None)
|
||||
if server_name is not None and "ubkaps154.ubka.uni-karlsruhe.de" in server_name:
|
||||
|
||||
if app.config.get("USE_SSL", False):
|
||||
try:
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
|
||||
context.load_cert_chain('cert.pem', 'key.pem')
|
||||
app.run(debug=True, ssl_context=context, threaded=True)
|
||||
context.load_cert_chain(app.config.get("CERT", 'cert.pem'), app.config.get("KEY", 'key.pem'))
|
||||
print("using ssl context!")
|
||||
app.run(debug=True, ssl_context=context, threaded=True,
|
||||
#host="0.0.0.0",
|
||||
host=app.config.get("HOST", "0.0.0.0"),
|
||||
port=app.config.get("PORT", 5443)
|
||||
)
|
||||
except FileNotFoundError:
|
||||
app.run(debug=True, threaded=True)
|
||||
print("Could not find cert/key.pem!")
|
||||
app.run(debug=True, threaded=True,
|
||||
host=app.config.get("HOST", None),
|
||||
port=app.config.get("PORT", 5443)
|
||||
)
|
||||
|
||||
try:
|
||||
db.create_all()
|
||||
@@ -63,7 +71,7 @@ def main():
|
||||
logging.critical(e)
|
||||
|
||||
scheduler = _create_and_start_default_scheduler()
|
||||
#_start_initial_recorder_state_update(run_in_thread=False)
|
||||
# _start_initial_recorder_state_update(run_in_thread=False)
|
||||
|
||||
wsb = WebSocketBase()
|
||||
print("running websocket...(replaces normal app.run()")
|
||||
|
||||
Reference in New Issue
Block a user