Repository navigation
Conversation
Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
This branch has not been deployed
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.
Hi there, here is a proposed fix for this issue.
Description
Adds
guides/embed-in-a-web-app.mdxto the docs site and a card for it in the Guides index. The guide walks through serving Graph Explorer under a path prefix of your own web app (for example/graph/) through a reverse proxy, linking to it with a connection link, and showing it in an<iframe>.It mostly puts together what the docs already say in separate places (Serving HTTP Behind a Reverse Proxy, Reference for access control layers, Reverse proxy misconfigured, Connection Links) into one start-to-finish page: run the server over HTTP on loopback, an nginx rule that strips the prefix and forwards the rest unchanged, timeout and body size settings that match the documented 240000 ms fetch timeout and 50 MB body limit, and a short check list. The one new statement is that the server itself sends no
X-Frame-OptionsorContent-Security-Policyheader, so whether an iframe loads depends on what the reverse proxy or web framework adds.Validation
vp checkpasses (format, lint, types), andvp run docs:buildbuilds 27 pages and its link check reports all internal links resolve and every alert converts.Dockerfileand ran it withPROXY_SERVER_HTTPS_CONNECTION=falseandPROXY_SERVER_PORT=9250behindnginx:alpineusing the exactlocation /graph/rule from the guide. Through nginx,/graph/explorer/returned 200,/graph/explorerreturned a 301 to the relativeexplorer/,/graph/statusreturned 200, andPOST /graph/gremlinreached the server (400 for the missinggraph-db-connection-urlheader). The response headers had noX-Frame-OptionsorContent-Security-Policy.Related Issues
Addresses #1461
Check List
pnpm checkspasses with no errors. (ranvp check, which AGENTS.md names as the check command)pnpm testpasses with no failures. (docs-only change, unit tests not run)