Skip to content

Commit 0bd5fa3

Browse files
authored
dbeaver/dbeaver-devops#2605 Added header description for proxy configuration (#201)
1 parent 2dac6f9 commit 0bd5fa3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

compose/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ Example for proxy configuration:
7676
JAVA_TOOL_OPTIONS="-Dhttp.proxy.host=<proxyname> -Dhttps.proxy.host=<proxyname> -Dhttp.proxy.port=<port> -Dhttps.proxy.port=<port>"
7777
```
7878

79+
### Proxy configuration in front of Team Edition
80+
81+
If you place your own reverse proxy in front of Team Edition instead of the bundled `web-proxy`, it must forward the following headers so the backend can resolve the correct public origin.
82+
83+
The backend looks for the public origin in this order (first non-empty wins):
84+
85+
- `Origin` — public URL the client used (`scheme://host[:port]`).
86+
- `X-Origin` — fallback when `Origin` is absent.
87+
- `Referer` — last-resort fallback.
88+
- `X-Forwarded-Scheme` — original scheme (`http` / `https`).
89+
- `X-Forwarded-Proto` — fallback for `X-Forwarded-Scheme` (`http` / `https`).
90+
- `X-Forwarded-Host` — original host. If both the scheme and host above are set, they override `Origin` / `X-Origin` / `Referer`.
91+
- `X-Forwarded-Port` — original port (only needed if it differs from 80/443).
92+
7993
## Configuring and starting Team Edition cluster
8094

8195
1. Clone Git repository to your local machine by running the following command in your terminal:

0 commit comments

Comments
 (0)