mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
update README.md
This commit is contained in:
parent
5288924681
commit
0c0594a7ee
2 changed files with 11 additions and 6 deletions
|
@ -178,7 +178,11 @@ systemctl restart nginx-ui
|
||||||
|
|
||||||
注意:映射到 `/etc/nginx` 的文件夹应该为一个空目录。
|
注意:映射到 `/etc/nginx` 的文件夹应该为一个空目录。
|
||||||
|
|
||||||
**Docker 示例**
|
#### 注意
|
||||||
|
1. 首次使用时,映射到 `/etc/nginx` 的目录必须为空文件夹。
|
||||||
|
2. 如果你想要托管静态文件,可以直接将文件夹映射入容器中。
|
||||||
|
|
||||||
|
**Docker 部署示例**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -dit \
|
docker run -dit \
|
||||||
|
@ -199,9 +203,9 @@ docker run -dit \
|
||||||
|
|
||||||
- Make
|
- Make
|
||||||
|
|
||||||
- Golang 1.18+
|
- Golang 1.19+
|
||||||
|
|
||||||
- node.js 14+
|
- node.js 18+
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npx browserslist@latest --update-db
|
npx browserslist@latest --update-db
|
||||||
|
|
|
@ -177,10 +177,11 @@ systemctl restart nginx-ui
|
||||||
|
|
||||||
#### With Docker
|
#### With Docker
|
||||||
|
|
||||||
You can use our `uozi/nginx-ui:latest` [image](https://hub.docker.com/r/uozi/nginx-ui) in docker, which is base on `nginx:latest`. You can replace the Nginx on host by publishing port 80 and 443 to host.
|
You can use our `uozi/nginx-ui:latest` [image](https://hub.docker.com/r/uozi/nginx-ui) in docker, which is base on `nginx:latest`.
|
||||||
|
You can replace the Nginx on host by publishing port 80 and 443 to host.
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
1. The volume mapping to `/etc/nginx` should be empty.
|
1. When used for the first time, the volume mapping to `/etc/nginx` should be empty.
|
||||||
2. If you want to host static files, map a directory to container.
|
2. If you want to host static files, map a directory to container.
|
||||||
|
|
||||||
**Docker Deploy Example**
|
**Docker Deploy Example**
|
||||||
|
@ -206,7 +207,7 @@ On platforms that do not have an official build version, they can be built manua
|
||||||
|
|
||||||
- Make
|
- Make
|
||||||
|
|
||||||
- Golang 1.18+
|
- Golang 1.19+
|
||||||
|
|
||||||
- node.js 18+
|
- node.js 18+
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue