Make the displayed SSH username configurable

This patch allows the SSH username displayed in templates to be
configured through the SSH_USERNAME environment variable.
This commit is contained in:
2021-08-09 21:23:12 +00:00
parent 7b16606b16
commit d4a9f2f40a
5 changed files with 8 additions and 5 deletions

View File

@ -108,6 +108,8 @@ def detail(id):
if vm is None:
return abort(404, f"{id} doesn't exist.")
vm['ssh_username'] = current_app.config['SSH_USERNAME']
if vm['deleted']:
return render_template("capsul-detail.html", vm=vm, delete=True, deleted=True)