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

USAGOV-2060: nginx config cleanup for gsa.benefits.gov #2132

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
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: 0 additions & 4 deletions .docker/src-waf/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ server {
if ($http_x_usa_forwarded_host ~* ^(www\.)?govloans\.gov$) {
set $HostMatchFail "matched";
}
# gsa.benefits.gov is for testing; we can remove it after cutover
if ($http_x_usa_forwarded_host ~* ^gsa\.benefits\.gov$) {
set $HostMatchFail "matched";
}

if ($HostMatchFail = "NOMATCH") {
# didn't match expected host; redirect to home page.
Expand Down
6 changes: 0 additions & 6 deletions .docker/src-waf/etc/nginx/snippets/domain-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@
break;
}

## gsa.benefits.gov is for testing of the benefits rewrites and can be removed after cutover:
if ($cf_forwarded_host ~* ^gsa\.benefits\.gov$) {
set $port 8889;
break;
}

## govloans.gov (part of the benefits.gov transition)
if ($cf_forwarded_host ~* ^(www\.)?govloans\.gov$) {
set $port 8889;
Expand Down
Loading