Skip to content
Snippets Groups Projects
Commit f04fd155 authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Merge branch 'master' of https://gitlab.dkrz.de/freva/deployment

parents 217e0e90 2131fa9c
No related branches found
No related tags found
No related merge requests found
Pipeline #20192 failed
...@@ -216,16 +216,18 @@ class DeployFactory: ...@@ -216,16 +216,18 @@ class DeployFactory:
if web_host == "127.0.0.1": if web_host == "127.0.0.1":
web_host = "localhost" web_host = "localhost"
self.cfg["web"]["config"]["host"] = web_host self.cfg["web"]["config"]["host"] = web_host
# _webserver_items["INSTITUTION_LOGO"] = "/path/to/your/logo" _webserver_items["CSRF_TRUSTED_ORIGINS"] = []
trusted_origin = urlparse(server_name) for url in (server_name, self.cfg["web"]["config"]["project_website"]):
if trusted_origin.scheme: trusted_origin = urlparse(url)
_webserver_items["CSRF_TRUSTED_ORIGINS"] = [
f"https://{urlparse(server_name).netloc}" if trusted_origin.scheme:
] _webserver_items["CSRF_TRUSTED_ORIGINS"].append(
else: f"https://{trusted_origin.netloc}"
_webserver_items["CSRF_TRUSTED_ORIGINS"] = [ )
f"https://{urlparse(server_name).path}" else:
] _webserver_items["CSRF_TRUSTED_ORIGINS"].append(
f"https://{trusted_origin.path}"
)
_webserver_items["FREVA_BIN"] = os.path.join( _webserver_items["FREVA_BIN"] = os.path.join(
self.cfg["core"]["config"]["install_dir"], "bin" self.cfg["core"]["config"]["install_dir"], "bin"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment