Commit 31799d3f authored by Daniele Venzano's avatar Daniele Venzano

Add cookie secret to tornado configuration

parent 959bf5f8
......@@ -57,7 +57,8 @@ def zoe_web_main() -> int:
app_settings = {
'static_path': os.path.join(os.path.dirname(__file__), "web", "static"),
'template_path': os.path.join(os.path.dirname(__file__), "web", "templates"),
# 'debug': args.debug
'cookie_secret': config.get_conf().cookie_secret,
'debug': args.debug
}
app = Application(zoe_api.web.web_init(api_endpoint) + zoe_api.rest_api.api_init(api_endpoint), **app_settings)
JinjaApp.init_app(app)
......
......@@ -89,6 +89,8 @@ def load_configuration(test_conf=None):
argparser.add_argument('--backend', choices=['OldSwarm'], default='OldSwarm')
argparser.add_argument('--cookie-secret', help='secret used to encrypt cookies', default='changeme')
opts = argparser.parse_args()
if opts.debug:
argparser.print_values()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment