Added new webui support into docker

This commit is contained in:
simonmicro 2022-12-11 21:56:08 +01:00
parent ca7ba46507
commit 5674e26979
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6
4 changed files with 22 additions and 6 deletions

View file

@ -84,7 +84,7 @@ def root():
@app.route('/license')
def license():
_increase_serve_count()
with open('../LICENSE', 'r') as f:
with open(os.environ.get('PYKMS_LICENSE_PATH', '../LICENSE'), 'r') as f:
return render_template(
'license.html',
path='/license/',