-
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
Researchdata and static-tables playbooks are broken #5131
Comments
Should we need to use multiple CORS this will be the way to do that |
I believe allsearch-frontend works with tunneling because the Access-Control-Allow-Origin header is turned off entirely - see vite.config.ts:8. It looks like we could give this a more fine-grained CORS policy - see vite config reference and expressjs config reference. |
When we were trying to see whether static-tables was rendering correctly on the new production server, we followed our common local practice of tunneling into the new server to look at the page before putting it on the load balancer. When we tunneled in, all we saw was a blank page. To see why, we opened the console in the browser dev tools, and saw that the content was being blocked by CORS policies. Right now, this policy is being set in roles/static_tables/templates/default.conf.j2, and allows the origin https://library.princeton.edu or https://library-staging.princeton.edu, depending which server it's run on. (it's proxy-passed to the library domain, although I assume that's changing soon) As a developer, I'd like it if the both I and the Ops team can continue to use our tunneling pattern to check a server before putting it on the load balancer. |
add both VMS to loadbalancer closes #5131
Expected behavior
These two playbooks (researchdata and static-tables) should install open-source nginx as a local webserver.
Actual behavior
Both playbooks fail with the error:
If you add a line to include
/group_vars/nginxplus/main.yml
, providing access to the variable from the error above, the playbooks build an nginxplus load balancer on the prds-staging and static-tables VMs.Steps to replicate
Run the playbooks on staging.
Impact of this bug
We cannot update any of the VMs for these project.
Relevant links and code snippets, if applicable
Implementation notes, if any
We think the playbooks were working correctly as of July 1st. They are broken as of July 8. The
nginx_type
variable should default toopensource
, which should not run the task that errored out above.The text was updated successfully, but these errors were encountered: