mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5149] [MERGED] feat(env): allow setting the initial URI path for the web panel #5794
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5794
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5149
Author: @Ponywka
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei
Base:
main← Head:feature/default-uri-path📝 Commits (3)
ac3c35ffeat(env): allow setting the initial URI path for the web panel0145b53Merge branch 'main' into feature/default-uri-pathe8065edfix(setting): normalize and guard XUI_INIT_WEB_BASE_PATH default📊 Changes
11 files changed (+27 additions, -9 deletions)
View changed files
📝
.env.example(+2 -1)📝
CONTRIBUTING.md(+2 -0)📝
README.ar_EG.md(+1 -0)📝
README.es_ES.md(+1 -0)📝
README.fa_IR.md(+1 -0)📝
README.md(+1 -0)📝
README.ru_RU.md(+1 -0)📝
README.tr_TR.md(+1 -0)📝
README.zh_CN.md(+1 -0)📝
docker-compose.yml(+1 -0)📝
internal/web/service/setting.go(+15 -8)📄 Description
Summary
Adds support for configuring the initial URI path for the web panel via the
XUI_INIT_WEB_BASE_PATHenvironment variable.Why
This allows deployments to define the web panel base path during initial setup, which is useful when running the panel behind a reverse proxy or under a non-root URI path.
Type of change
Areas affected
How was this tested?
Tested locally by starting the application with
XUI_INIT_WEB_BASE_PATHset to a custom URI path and confirming that the initial web panel path is applied correctly.Also verified that the default value remains / when the environment variable is not set.
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.