Add ws_token to auto-generated config

This commit is contained in:
Matthias
2022-09-09 07:13:05 +02:00
parent 46cd0ce994
commit e256ebd727
4 changed files with 4 additions and 3 deletions

View File

@@ -211,6 +211,7 @@ def ask_user_config() -> Dict[str, Any]:
)
# Force JWT token to be a random string
answers['api_server_jwt_key'] = secrets.token_hex()
answers['api_server_ws_token'] = secrets.token_urlsafe(25)
return answers