Skip to content

Commit

Permalink
Merge pull request #143 from 18F/federalist-docs-redirect
Browse files Browse the repository at this point in the history
Add redirect for federalist-docs.18f.gov to federalist.18f.gov
  • Loading branch information
davemcorwin authored Jan 16, 2020
2 parents fe5283d + f9f2f29 commit 563ae78
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ jobs:
- image: circleci/node:10
steps:
- checkout
- run:
name: Install yarn
command: sudo npm install -g yarn
- run:
name: Display versions
command: |
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ services:
- app:cap.18f.gov
- app:requests.18f.gov
- app:www.findtreatment.gov
- app:federalist-docs.18f.gov
8 changes: 8 additions & 0 deletions templates/_federalist-redirects.njk
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,11 @@ server {
server_name www.findtreatment.gov;
return 301 https://$target_domain$request_uri;
}

# federalist-docs.18f.gov to federalist.18f.gov
server {
listen {{ PORT }};
set $target_domain federalist.18f.gov;
server_name federalist-docs.18f.gov;
return 301 https://$target_domain;
}
1 change: 1 addition & 0 deletions templates/manifest-prod.yml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ routes:
- route: cap.18f.gov
- route: requests.18f.gov
- route: www.findtreatment.gov
- route: federalist-docs.18f.gov
{% for page in PAGE_CONFIGS -%}
- route: {{ page.to }}.{{ page.toDomain }}
{% endfor -%}

0 comments on commit 563ae78

Please sign in to comment.