Skip to content

Route Playwright through the shared proxy - #151

Merged
vitormattos merged 2 commits into
mainfrom
fix/playwright-proxy-resolution
Oct 5, 2026
Merged

vitormattos merged 2 commits into
mainfrom
fix/playwright-proxy-resolution

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Ensure the optional Playwright container can resolve the worker's canonical Nextcloud hostname to the Docker host where the shared NCDD proxy listens.

Why

PLAYWRIGHT_BASE_URL uses the public worker hostname. Inside the Playwright container, a *.localhost hostname otherwise resolves to the container itself rather than the shared proxy.

Changes

  • map the configured NEXTCLOUD_HOST to host-gateway inside the Playwright service;
  • cover the rendered worker contract with a regression test.

This keeps Playwright using the same canonical URL as browsers and Nextcloud instead of bypassing the proxy.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit f12ed43 into main Oct 5, 2026
13 checks passed
@vitormattos
vitormattos deleted the fix/playwright-proxy-resolution branch October 5, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant