@@ -76,6 +76,7 @@ Nginx 网络管理界面,由 [0xJacky](https://jackyu.cn/) 与 [Hintay](https
7676- 在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
7777- 使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
7878- 前端支持暗夜模式
79+ - 保存配置文件后自动测试配置文件并重载 Nginx
7980
8081### 国际化
8182
@@ -195,51 +196,51 @@ go build -o nginx-ui -v main.go
195196** 安装或升级**
196197
197198``` shell
198- bash <( curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install
199+ bash <( curl -L -s https://ghproxy.com/https:// raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install -r https://ghproxy.com/
199200```
200201一键安装脚本默认设置的监听端口为 ` 9000 ` ,HTTP Challenge 端口默认为 ` 9180 ` ,如果出现端口冲突请进入 ` /usr/local/etc/nginx-ui/app.ini ` 修改,并使用 ` systemctl restart nginx-ui ` 重启 Nginx UI 服务。
201202
202203** 卸载 Nginx UI 但保留配置和数据库文件**
203204
204205``` shell
205- bash <( curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
206+ bash <( curl -L -s https://ghproxy.com/https:// raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) remove
206207```
207208
208209### 更多用法
209210
210211```` shell
211- bash <( curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
212+ bash <( curl -L -s https://ghproxy.com/https:// raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) help
212213````
213214
214215## Nginx 反向代理配置示例
215216
216217``` nginx
217218server {
218- listen 80;
219- listen [::]:80;
219+ listen 80;
220+ listen [::]:80;
220221
221- server_name <your_server_name>;
222+ server_name <your_server_name>;
222223 rewrite ^(.*)$ https://$host$1 permanent;
223224}
224225
225226server {
226- listen 443 ssl http2;
227- listen [::]:443 ssl http2;
227+ listen 443 ssl http2;
228+ listen [::]:443 ssl http2;
228229
229- server_name <your_server_name>;
230+ server_name <your_server_name>;
230231
231- ssl_certificate /path/to/ssl_cert;
232- ssl_certificate_key /path/to/ssl_cert_key;
232+ ssl_certificate /path/to/ssl_cert;
233+ ssl_certificate_key /path/to/ssl_cert_key;
233234
234235 location / {
235- proxy_set_header Host $host;
236- proxy_set_header X-Real-IP $remote_addr;
237- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
238- proxy_set_header X-Forwarded-Proto $scheme;
239- proxy_http_version 1.1;
240- proxy_set_header Upgrade $http_upgrade;
241- proxy_set_header Connection upgrade;
242- proxy_pass http://127.0.0.1:9000/;
236+ proxy_set_header Host $host;
237+ proxy_set_header X-Real-IP $remote_addr;
238+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
239+ proxy_set_header X-Forwarded-Proto $scheme;
240+ proxy_http_version 1.1;
241+ proxy_set_header Upgrade $http_upgrade;
242+ proxy_set_header Connection upgrade;
243+ proxy_pass http://127.0.0.1:9000/;
243244 }
244245}
245246```
0 commit comments