Skip to content

Commit 7757b27

Browse files
authored
Add support for proxying requests in apiv2 (#2996)
* add support for http_proxy variables * use extends in tsconfigs * add types for the proxy module * -only * simplify tsconfig by extending the base * add proxy information to the readme * add changelog entry
1 parent e427b78 commit 7757b27

11 files changed

+444
-82
lines changed

Diff for: CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
- Allow more than 100 concurrent connections to the Realtime Database emulator.
1+
- Allows more than 100 concurrent connections to the Realtime Database emulator.
22
- Fixes incorrect `databaseURL` inside the Cloud Functions emulator for new projects (#2965).
33
- Fixes function URLs when emulating namespaced/grouped Cloud Functions (#2966).
4-
- Support using `firebase-bolt` installed in local `node_modules` (#767).
4+
- Supports using `firebase-bolt` installed in local `node_modules` (#767).
55
- Fixes issue where Auth triggers were not disabled when background trigges were disabled.
6+
- Re-adds support for proxying HTTP requests in a new underlying library (#2927).

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ that we pass into the emulator through `GOOGLE_APPLICATION_CREDENTIALS`. We **on
185185
if you have not already set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable
186186
yourself.
187187

188+
## Using behind a proxy
189+
190+
The CLI supports HTTP(S) proxies via environment variables. To use a proxy, set the `HTTPS_PROXY`
191+
or `HTTP_PROXY` value in your environment to the URL of your proxy (e.g.
192+
`HTTP_PROXY=http://127.0.0.1:12345`).
193+
188194
## Using with CI Systems
189195

190196
The Firebase CLI requires a browser to complete authentication, but is fully

0 commit comments

Comments
 (0)