From 384b2c81b6f4eb3098220009ef623ba4c0a2413a Mon Sep 17 00:00:00 2001 From: Xavier Thompson <xavier.thompson@nexedi.com> Date: Thu, 17 Jun 2021 15:12:32 +0200 Subject: [PATCH] software/theia: Add authentification promise --- software/theia/buildout.hash.cfg | 2 +- software/theia/instance-theia.cfg.jinja.in | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/software/theia/buildout.hash.cfg b/software/theia/buildout.hash.cfg index b8e04d807..68d87b8f6 100644 --- a/software/theia/buildout.hash.cfg +++ b/software/theia/buildout.hash.cfg @@ -15,7 +15,7 @@ [instance-theia] _update_hash_filename_ = instance-theia.cfg.jinja.in -md5sum = 7475b6e11f573169f993068372087150 +md5sum = 3e7364c6790ab176df90a8cf19715a43 [instance] _update_hash_filename_ = instance.cfg.in diff --git a/software/theia/instance-theia.cfg.jinja.in b/software/theia/instance-theia.cfg.jinja.in index d71e88a5d..ed2841826 100644 --- a/software/theia/instance-theia.cfg.jinja.in +++ b/software/theia/instance-theia.cfg.jinja.in @@ -68,6 +68,7 @@ recipe = instance-promises = $${theia-listen-promise:name} $${frontend-listen-promise:name} + $${frontend-authentification-promise:name} $${remote-frontend-url-available-promise:name} {% if additional_frontend %} $${remote-additional-frontend-url-available-promise:name} @@ -89,6 +90,16 @@ name = $${:_buildout_section_name_}.py config-host = $${frontend-instance:ip} config-port = $${frontend-instance:port} +[frontend-authentification-promise] +<= monitor-promise-base +module = check_url_available +name = $${:_buildout_section_name_}.py +username = $${frontend-instance-password:username} +password = $${frontend-instance-password:passwd} +ip = $${frontend-instance:ip} +port = $${frontend-instance:port} +config-url = https://$${:username}:$${:password}@[$${:ip}]:$${:port} + [remote-frontend-url-available-promise] <= monitor-promise-base module = check_url_available -- 2.30.9