Skip to content

feat: add environment variables for public-facing URLs#381

Merged
lgalabru merged 1 commit intosolana-foundation:mainfrom
serejke:feat-studio-urls
Oct 20, 2025
Merged

feat: add environment variables for public-facing URLs#381
lgalabru merged 1 commit intosolana-foundation:mainfrom
serejke:feat-studio-urls

Conversation

@serejke
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@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 solana-foundation:main Oct 20, 2025
3 checks passed
@serejke serejke deleted the feat-studio-urls branch January 14, 2026 23:28
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