-
Notifications
You must be signed in to change notification settings - Fork 28
docs: add proxy mode env vars to ENVIRONMENT_VARIABLES.md and link gateway compatibility reference from README #2541
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -50,6 +50,16 @@ When using `run_containerized.sh`, these additional variables are available: | |||||
| | `DOCKER_HOST` | Docker daemon socket path | `/var/run/docker.sock` | | ||||||
| | `DOCKER_API_VERSION` | Docker API version (set by helper scripts, Docker client auto-negotiates) | Set by querying Docker daemon's current API version; falls back to `1.44` if detection fails | | ||||||
|
|
||||||
| ## Proxy Mode Variables | ||||||
|
|
||||||
| When running `awmg proxy`, these variables configure the upstream GitHub API: | ||||||
|
|
||||||
| | Variable | Description | Default | | ||||||
| |----------|-------------|---------| | ||||||
| | `GITHUB_API_URL` | Explicit GitHub API endpoint (e.g., `https://copilot-api.mycompany.ghe.com`); used by proxy to set upstream target | (auto-derived) | | ||||||
| | `GITHUB_SERVER_URL` | GitHub server URL; proxy auto-derives API endpoint: `*.ghe.com` → `copilot-api.*.ghe.com`, GHES → `<host>/api/v3`, `github.com` → `api.github.com` | (falls back to `api.github.com`) | | ||||||
| | `GITHUB_TOKEN` / `GH_TOKEN` | GitHub auth token for the proxy to forward requests | (required) | | ||||||
|
||||||
| | `GITHUB_TOKEN` / `GH_TOKEN` | GitHub auth token for the proxy to forward requests | (required) | | |
| | `GITHUB_TOKEN` / `GH_TOKEN` / `GITHUB_PERSONAL_ACCESS_TOKEN` | Optional GitHub auth token fallbacks used by the proxy when the client request has no `Authorization` header | Optional; precedence: client `Authorization` header → `GITHUB_TOKEN` → `GH_TOKEN` → `GITHUB_PERSONAL_ACCESS_TOKEN` | |
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.
The
GITHUB_SERVER_URLrow impliesgithub.comderives toapi.github.com, but the code derives tohttps://api.github.comand requires a parseable URL (including scheme) for derivation; otherwise it falls back to the default upstream. Consider updating the text/examples to explicitly requirehttps://...and include the scheme in the derived endpoints (and optionally mentionwww.github.comis treated the same).