diff --git a/roles/srobo-nginx/templates/nginx.conf b/roles/srobo-nginx/templates/nginx.conf index 58f0fe3..173d5b0 100644 --- a/roles/srobo-nginx/templates/nginx.conf +++ b/roles/srobo-nginx/templates/nginx.conf @@ -122,7 +122,7 @@ http { # Use a variable to trick it into connecting lazily and thus always # starting up, even if in a degraded mode. set $competitorsvcs '{{ competitor_services_proxy_hostname }}'; - proxy_pass https://$competitorsvcs/code-submitter/; + proxy_pass https://$competitorsvcs$request_uri; # Note: don't set a Host header as we want the code-submitter to use our # public hostname, not the hostname of the underlying machine. } @@ -134,7 +134,7 @@ http { # Use a variable to trick it into connecting lazily and thus always # starting up, even if in a degraded mode. set $srcomp '{{ srcomp_proxy_hostname }}'; - proxy_pass https://$srcomp/comp-api/; + proxy_pass https://$srcomp$request_uri; } # During the competition we un-comment this block to override the homepage