mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-06 14:03:40 +08:00
docs: clarify docker access ports
This commit is contained in:
@@ -257,6 +257,7 @@ docker run -dit \
|
||||
```
|
||||
|
||||
3. When your docker container is running, Log in to nginx-ui panel with `http://<your_server_ip>:8080/install`.
|
||||
If you change the port mapping, access Nginx UI through the host port mapped to container port `80` instead.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@@ -292,6 +293,7 @@ docker compose up -d
|
||||
```
|
||||
|
||||
4. When your docker container is running, Log in to nginx-ui panel with `http://<your_server_ip>:8080/install`.
|
||||
If you change the port mapping, access Nginx UI through the host port mapped to container port `80` instead.
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
@@ -113,7 +113,9 @@ you can easily make the switch.
|
||||
|
||||
::: tip
|
||||
|
||||
Nginx UI is by default proxied to port `8080` of the container.
|
||||
The official Docker image listens on container ports `80` and `443`.
|
||||
Requests to container port `80` are reverse proxied to the Nginx UI backend at `127.0.0.1:9000`.
|
||||
Access Nginx UI through the host port that you publish to container port `80`.
|
||||
When using this container for the first time, ensure that the volume mapped to `/etc/nginx` is empty.
|
||||
If you want to host static files, you can map directories to container.
|
||||
|
||||
|
||||
@@ -107,7 +107,9 @@ brew untap 0xjacky/tools
|
||||
|
||||
::: tip 提示
|
||||
|
||||
默认情况下,Nginx UI 会被反向代理到容器的 `8080` 端口。
|
||||
官方 Docker 镜像监听容器的 `80` 和 `443` 端口。
|
||||
对容器 `80` 端口的请求会被反向代理到 `127.0.0.1:9000` 上的 Nginx UI 后端。
|
||||
请通过映射到容器 `80` 端口的宿主机端口访问 Nginx UI。
|
||||
首次使用时,映射到 `/etc/nginx` 的目录必须为空文件夹。
|
||||
如果你想要托管静态文件,可以直接将文件夹映射入容器中。
|
||||
|
||||
|
||||
@@ -107,7 +107,9 @@ brew untap 0xjacky/tools
|
||||
|
||||
::: tip 提示
|
||||
|
||||
預設情況下,Nginx UI 會被反向代理到容器的 `8080` 連接埠。
|
||||
官方 Docker 映像檔會監聽容器的 `80` 和 `443` 連接埠。
|
||||
對容器 `80` 連接埠的請求會被反向代理到 `127.0.0.1:9000` 上的 Nginx UI 後端。
|
||||
請透過對映到容器 `80` 連接埠的主機連接埠存取 Nginx UI。
|
||||
首次使用時,對映到 `/etc/nginx` 的目錄必須為空資料夾。
|
||||
如果你想要託管靜態檔案,可以直接將資料夾對映入容器中。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user