-
Notifications
You must be signed in to change notification settings - Fork 4
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
Proxy pass template #2776
Proxy pass template #2776
Conversation
Cross-check against princeton_ansible/roles/nginxplus/files/conf/http/templates/libwww-proxy-pass-prod.conf Line 51 in a6bb30c
We may not currently be able to use proxypass rules in apache, this should be happening on the load balancer. Investigate! |
This PR now attempts to:
|
@@ -0,0 +1,141 @@ | |||
# list of proxy directives |
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.
@acozine the only concept I am not seeing is that we have different proxies for the staging library site and the production library site. For example: https://library.princeton.edu/njmaps/ and https://library-staging.princeton.edu/njmaps/. go to two different places https://lib-static-prod.princeton.edu/njmaps/ for prod and https://firestone-renovations-staging.princeton.edu/njmaps/ for staging. This is pattern is used a lot to proxy the staging version of the page to library-staging.princeton.edu and the production version to library.princeton.edu. This is necessary to test how the page will behave behind the proxy before putting changes into production.
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.
I know this is a WIP, so I am just making sure you have that in mind...
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.
Ah, thanks @carolyncole. I will make two files here - one for prod and one for staging.
I can't tell why this got closed. I'd guess an automated process that closes Draft PRs after 2 months, except we have older Draft PRs that are still open. When someone actively closes a PR, the message says |
Closing in favor of #3741. |
The template we've been using for proxy pass configuration is more of a file than a template.
This PR pulls the data for proxy passes into its own (alphabetized) vars file, makes the template a template, and adds a task to fill out the template. Separating the data out doesn't reduce maintenance, but it does make the entries more readable, so folks can easily add or edit entries for sites that need proxy passes.