Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through the full request_uri to these proxied services #60

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/srobo-nginx/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand All @@ -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
Expand Down
Loading