Skip to content

Conversation

@serejke
Copy link
Contributor

@serejke serejke commented Oct 20, 2025

Allow overriding public URLs via environment variables when running behind a reverse proxy. This fixes an issue where the UI would try to connect to bind addresses (e.g., http://0.0.0.0:8899) instead of the public-facing URLs.

The UI runs in the browser (client-side) and needs to know the public URLs to connect back to the API, not the internal bind addresses used by the Docker container.

New environment variables:

  • SURFPOOL_PUBLIC_RPC_URL: Public RPC endpoint URL
  • SURFPOOL_PUBLIC_WS_URL: Public WebSocket endpoint URL
  • SURFPOOL_PUBLIC_STUDIO_URL: Public Studio UI URL

Also fix Dockerfile to expose correct port 18488 instead of outdated 8488.

Allow overriding public URLs via environment variables when running
behind a reverse proxy. This fixes an issue where the UI would try
to connect to bind addresses (e.g., http://0.0.0.0:8899) instead of
the public-facing URLs.

The UI runs in the browser (client-side) and needs to know the public
URLs to connect back to the API, not the internal bind addresses used
by the Docker container.

New environment variables:
- SURFPOOL_PUBLIC_RPC_URL: Public RPC endpoint URL
- SURFPOOL_PUBLIC_WS_URL: Public WebSocket endpoint URL
- SURFPOOL_PUBLIC_STUDIO_URL: Public Studio UI URL

Also fix Dockerfile to expose correct port 18488 instead of outdated 8488.

(cherry picked from commit b14aa71)
Copy link
Member

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @serejke !

@lgalabru lgalabru merged commit 9b1e86c into txtx:main Oct 20, 2025
3 checks passed
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.

2 participants