mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #171] NginxUI port #4523
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#4523
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 @RizqiSyahrendra on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/171
Is your feature request related to a problem? Please describe.
I am confused, in docker container how to define custom port for admin page (nginx ui) but keep using 80/443 as default built-in nginx http/https port? just for security purposes, so there's no one can access the admin page (nginx ui) unless owner
Describe the solution you'd like
Using dockerfile or docker compose environment variable, for example : NGINXUI_PORT=9090
@0xJacky commented on GitHub (Oct 7, 2023):
You can add a port mapping in docker_compose.yml as follows:
Alternatively, add a port mapping parameter
-p9000:9090when starting the nginx ui container. Additionally, remove theconf.d/nginx-ui.conffile from the nginx configuration directory on your host, then recreate the container. This should meet your requirements.@RizqiSyahrendra commented on GitHub (Oct 7, 2023):
I see, I didn't realize that default port of the nginxui is 9000 and you already proxied it to 80 through nginx, thank you it meets my requirement now. btw a little typo, the mapping should be "9090:9000"