fix(server): use SITE_URL in bootstrap startup message#5436
Merged
akhilmhdh merged 1 commit intoInfisical:mainfrom Feb 11, 2026
Merged
fix(server): use SITE_URL in bootstrap startup message#5436akhilmhdh merged 1 commit intoInfisical:mainfrom
akhilmhdh merged 1 commit intoInfisical:mainfrom
Conversation
The bootstrap check message always displays http://localhost:{PORT},
which is incorrect when using Docker port mapping (e.g. 80:8080) or a
reverse proxy. Users see a URL like http://localhost:8080 that doesn't
resolve, while the actual service is on a different port or domain.
Use SITE_URL from the environment when available, falling back to
localhost:{PORT} only when SITE_URL is not configured.
Fixes #5295
Fixes #4268
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Greptile OverviewGreptile SummaryThis PR updates the bootstrap/startup message so it prefers Confidence Score: 4/5
Important Files Changed
|
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
akhilmhdh
approved these changes
Feb 11, 2026
Member
|
Looks good! Thank you for your contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes #5295 and #4268.
The bootstrap check message in
boot-strap-check.tsalways displayshttp://localhost:{PORT}as the URL for accessing the admin panel and server. When using Docker port mapping (e.g.-p 80:8080) or a reverse proxy, the internal container port (8080) doesn't match the externally accessible port/domain, causing confusion.Fix
Use
SITE_URLfrom the environment configuration when available, falling back tohttp://localhost:{PORT}only whenSITE_URLis not configured.SITE_URLis already a standard configuration option that self-hosted users set to their externally accessible URL.Test Plan
SITE_URLsetlocalhost:{PORT}whenSITE_URLis not set