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

Feature/deseng536 Redirect landuseplanning.gov.bc.ca to planninginpartnership.ca #113

Merged
merged 12 commits into from
Jul 29, 2024

Conversation

Baelx
Copy link
Contributor

@Baelx Baelx commented Jul 29, 2024

  • Remove commands that copy nginx config to container
  • Create configmaps to store nginx config per-project
  • Modify deployment configs to use mounted configmaps
  • Fix local build issue by inputting proper package.json version and removing build step
  • Remove commented-out nginx config

@Baelx Baelx requested a review from NatSquared July 29, 2024 06:04
Copy link
Collaborator

@NatSquared NatSquared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. This PR adds a redirect for requests from old URLs and a new site to be served at the new URL.

server_name localhost;
listen 8080;
server_name landuseplanning.gov.bc.ca;
rewrite ^/(.*)$ https://planninginpartnership.ca/$1 permanent;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a standard permanent redirect 👍

# set_real_ip_from %RealIpFrom%;
#%AdditionalRealIpFromRules%
# real_ip_recursive on;
# real_ip_header X-Forwarded-For;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this cleanup!

@@ -1,3 +1,5 @@
# This nginx server config now lives in ConfigMaps (nginx-conf) in the dev, test, prod projects respectively
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! Thanks for maintaining this copy; good to know we're using a more flexible system now

@Baelx Baelx merged commit 0eb4619 into dev Jul 29, 2024
2 of 3 checks passed
@Baelx Baelx deleted the feature/deseng536 branch July 29, 2024 17:47
@Baelx
Copy link
Contributor Author

Baelx commented Jul 29, 2024

Looks good. This PR adds a redirect for requests from old URLs and a new site to be served at the new URL.

Thanks Nat! It's technically not a new site, but just two different domains that point to the same site. For branding purposes, we don't want the landuseplanning URL persisting in the production site but for it to always redirect such that the address bar populates with planninginpartnership.ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants