-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
Baelx
commented
Jul 29, 2024
•
edited
Loading
edited
- 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
There was a problem hiding this 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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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 |