Skip to content

Commit

Permalink
Add repler_hostname to nginx.conf.template
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JonJagger committed Sep 1, 2023
1 parent c4ee5a5 commit e29d5d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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/ {
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit e29d5d9

Please sign in to comment.