Initial Docker deployment setup
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--- a/src/external_plugins/client-config.py
|
||||
+++ b/src/external_plugins/client-config.py
|
||||
@@ -17,0 +18,6 @@
|
||||
+def normalize_client_config(config):
|
||||
+ if not config["api_host"].startswith(("http://", "https://")):
|
||||
+ config["api_host"] = f"https://{config['api_host']}"
|
||||
+ return config
|
||||
+
|
||||
+
|
||||
@@ -24 +30 @@
|
||||
- return json.loads(config)
|
||||
+ return normalize_client_config(json.loads(config))
|
||||
@@ -37 +43 @@
|
||||
- config = json.loads(t[0][0])
|
||||
+ config = normalize_client_config(json.loads(t[0][0]))
|
||||
@@ -298 +304 @@
|
||||
- "api_host": config["domain"],
|
||||
+ "api_host": f"https://{config['domain']}",
|
||||
Reference in New Issue
Block a user