From e29d5d9469d0c432e8b5ba26e3e8a7b84e419bcf Mon Sep 17 00:00:00 2001 From: JonJagger Date: Fri, 1 Sep 2023 05:07:15 +0100 Subject: [PATCH] Add repler_hostname to nginx.conf.template At the moment the repler service is repeatedly going up and down. This is not caused by commits to the repler repo, but instead appears to be caused by the container failing its health checks. This is causing a lot of noise in the Kosli snapshots UX for the two cyber-dojo Environments, aws-beta and aws-prod, which we would like to get rid of. --- nginx.conf.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx.conf.template b/nginx.conf.template index fe446ce..b73d4e0 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -59,6 +59,7 @@ server { set $languages_start_points_hostname ${CYBER_DOJO_LANGUAGES_START_POINTS_HOSTNAME}; set $shas_hostname ${CYBER_DOJO_SHAS_HOSTNAME}; set $runner_hostname ${CYBER_DOJO_RUNNER_HOSTNAME}; + set $repler_hostname ${CYBER_DOJO_REPLER_HOSTNAME}; set $web_hostname ${CYBER_DOJO_WEB_HOSTNAME}; location /creator/ { @@ -101,6 +102,11 @@ server { proxy_pass http://$shas_hostname:${CYBER_DOJO_SHAS_PORT}; } + location /repler { + rewrite ^/repler/(.*) /$1 break; + proxy_pass http://$repler_hostname:${CYBER_DOJO_REPLER_PORT}; + } + location /runner/sha { rewrite ^/runner/sha /sha break; proxy_pass http://$runner_hostname:${CYBER_DOJO_RUNNER_PORT};