Pathfinder iframe integration for testing on devsites#1657
Open
Pathfinder iframe integration for testing on devsites#1657
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pathfinder demo instance is running on port 3000 on
cedar, via my userspacesystemdconfig. See https://github.com/VEuPathDB/pathfinder/blob/main/README-podman-quadlets.md for details.You can access it on
http://localhost:3000after runningssh -L 3000:localhost:3000 cedarlocally to set up a tunnel.This PR integrates the new feature into an iframe (possibly temporary just for further testing until tighter integration is engineered). The iframe is available at
/a/app/pathfinder, but will require proxying before it will work.Request: Apache proxy for Pathfinder app
The Pathfinder webapp runs as a separate Node process on port 3000 of the server. We need Apache to proxy a path to it so the iframe can load it same-origin rather than directly hitting the port.
Add the following to the Apache virtualhost config for the relevant sites on
cedar:This must be placed before any catch-all or webapp handler rules so it takes priority.
Effect: Requests to
https://plasmodb.org/pathfinder-app?...will be proxied transparently tohttp://localhost:3000?.... The React embedding page at/a/app/pathfinderis unaffected.Required Apache modules:
mod_proxyandmod_proxy_http(likely already enabled).