templating - prepare integration into ui

This commit is contained in:
bunkerity
2021-05-28 16:41:41 +02:00
parent c7b81cfc10
commit 99c259bf18
10 changed files with 114 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
{% if USE_REVERSE_PROXY == "yes" %}
{% for k, v in all.items() %}
{% if k.startswith("REVERSE_PROXY_URL") %}
{% if k.startswith("REVERSE_PROXY_URL") and v != "" %}
{% set url = v %}
{% set host = all[k.replace("URL", "HOST")] if k.replace("URL", "HOST") in all else "" %}
{% set ws = all[k.replace("URL", "WS")] if k.replace("URL", "WS") in all else "" %}