Adds APP_URL as base tag href to enable loading via ui via ingress routes (#2195)

This commit is contained in:
Simon Morris
2023-02-15 15:49:23 +01:00
committed by GitHub
parent 42e005f041
commit 8356ebf097
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ def send_js(path):
@app.route('/')
@authorize
def index():
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS)
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS, app_url=APP_URL)
DEFAULT_UI_CONFIG = {
+1
View File
@@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{app_url}}">
<title>PostgreSQL Operator UI</title>