mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1513] First time installtion page skip when start with NGINX_UI_NODE_SECRET and NGINX_UI_APP_JWT_SECRET defined #3939
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#3939
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?
Originally created by @lionmark01 on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1513
Describe the bug
When I try to start nginxui (docker) with these two environment variables set (NGINX_UI_NODE_SECRET and NGINX_UI_APP_JWT_SECRET), first time installation page will not showing and redirect me to login page instead which make me unable to setup.
To Reproduce
Steps to reproduce the behavior:
docker run -dit --name=nginx-ui --restart=always -e TZ=Asia/Shanghai -e NGINX_UI_NODE_SECRET=1234567890 -e NGINX_UI_APP_JWT_SECRET=abcedfg -v /mnt/user/appdata/nginx:/etc/nginx -v /mnt/user/appdata/nginx-ui:/etc/nginx-ui -v /var/www:/var/www -v /var/run/docker.sock:/var/run/docker.sock -p 8080:80 -p 8443:443 uozi/nginx-ui:sha-cb1fb69localhost:8080and you will see a login page instead of first time installation pageExpected behavior
It should show first time installation page instead of login page
Info:
Additional context
localhost:8080/#/installbut it will not allow me to stay on this page and redirect me back to login page too/mnt/user/appdata/nginxon my node to make sure it actually empty but it still unable to access first time installation page@0xJacky commented on GitHub (Feb 6, 2026):
Hi @lionmark01, this is the system design.
Before the initial installation, you should not set NGINX_UI_APP_JWT_SECRET.