Add proxy configuration support to ApiTarget and PageTarget #1
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.
Extends tracker targets with proxy server configuration including optional authentication credentials for Proxy-Authorization headers. Implements automatic migration for existing trackers.
Changes
ProxyConfig(URL + optionalProxyCredentials) with scheme/value for Proxy-Authorization headerproxyfield toApiTargetandPageTargetRawApiTarget/RawPageTargetwithRawProxyConfigfor database storageproxy: Nonevia postcard fallbackhttp_client()to returnResultand configure proxy with authenticationWebScraperContentRequestand worker to pass proxy config to browser contextExample Usage
Limitations
Playwright's proxy API only supports username/password authentication. Custom auth schemes log a warning and require extraHTTPHeaders implementation (not included).
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/lib/rustlib/x86_64-u�� 6ed83.rlib 64-REDACTED-linux-gnu/lib/libstd-a71a575950182156.rlib 64-REDACTED-linux-gnu/lib/libpanic_unwind-150250ca1242312f.rlib 64-REDACTED-linux-gnu/lib/libobject-00745b6f63a5acb7.rlib 64-REDACTED-linux-gnu/lib/libmemchr-ff20d9e744b5ce29.rlib 64-REDACTED-linux-gnu/lib/libaddr2line-05ff42d0bb8bc056.rlib 64-REDACTED-linux-gnu/lib/libgimli-9e30a03d9a87a46b.rlib 64-REDACTED-linux-gnu/lib/libcfg_if-ca532f729409e986.rlib 64-REDACTED-linux-gnu/lib/librustc_demangle-d3519961f658f03a.rlib 64-REDACTED-linux-gnu/lib/libstd_detect-866c9680e50cd51f.rlib 64-u�� 64-REDACTED-linux-gnu/lib/librustc_std_workspace_alloc-2fb855ef27dbee02.rlib 64-REDACTED-linux-gnu/lib/libminiz_oxide-9b8400ec28816bfd.rlib lib/rustlib/x86_-m 51b9484a6a50a8c2findmnt lib/rustlib/x86_-t 51b9484a6a50a8c2cgroup2 lib/rustlib/x86_--noheadings(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.