版本比较
比较
标识
- 该行被添加。
- 该行被删除。
- 格式已经改变。
安装步骤
nginx-ui.yml
代码块 | ||
---|---|---|
| ||
services:
nginx-ui:
stdin_open: true
tty: true
container_name: nginx-ui
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- '/data/nginx-ui/nginx:/etc/nginx'
- '/data/nginx-ui/nginx-ui:/etc/nginx-ui'
- '/data/nginx-ui/www:/var/www'
- '/var/run/docker.sock:/var/run/docker.sock'
ports:
- |
...
80:80 - |
...
43:443 image: 'uozi/nginx-ui:latest' |
Image Modified
Image Modified
Image Added
常用配置
nginx-ui 采用基于 debian 风格的配置模式,下面是基础配置文件的存储位置
- /etc/nginx/conf.d/*.conf nginx-ui 站点的配置目录
- /etc/nginx/sites-enabled/* 新建站点后的配置文件目录
- /var/www 如果需要建立静态目录,这个是静态文件存储位置
- /etc/nginx/ssl/ 自行配置的证书存储位置
反向代理站点配置
目标:实现输入 nginx.lfang123.com 时自动跳转到 https://nginx.lfang123.com ,该网站就算 nginx-ui 的管理页面(127.0.0.1:9000)
1、进入页面后添加站点 nginx.lfang123.com
Image Added
2、接下来添加对应的证书配置
Image Added
Image Added
3、详细的配置如下(切换【高级模式 】)
Image Added
重置管理密码
代码块 | ||
---|---|---|
| ||
docker exec -it nginx-ui nginx-ui reset-password --config=/etc/nginx-ui/app.ini |
目录 |
---|