在线查看服务器 CPU、内存、系统负载、磁盘使用率等指标
在线 ChatGPT 助理
一键申请和自动续签 Let's encrypt 证书
在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
在线查看 Nginx 日志
使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
保存配置后自动测试配置文件并重载 Nginx
基于网页浏览器的高级命令行终端
支持深色模式
自适应网页设计

0xJacky 16a3d02d9c update README.md 3 年之前
frontend d3a322c71e update README-zh_CN.md 3 年之前
resources 0cf6919d7b Added English version of README. Restructuring the directory of resources. 3 年之前
server f097acb3e9 make translations in frontend 3 年之前
.editorconfig 070b34be8a unfinished WebUI 4 年之前
.gitignore f097acb3e9 make translations in frontend 3 年之前
README-zh_CN.md 16a3d02d9c update README.md 3 年之前
README.md 16a3d02d9c update README.md 3 年之前
app.example.ini d09f484790 embed frontend 3 年之前
go.mod 64f7de47dc Added internationalize, and fixed some small bugs. 3 年之前
go.sum 64f7de47dc Added internationalize, and fixed some small bugs. 3 年之前
install.sh 8ce46dc52e Updated install.sh 3 年之前
main.go c8732ddb08 fix install script 3 年之前
nginx-ui.service c8732ddb08 fix install script 3 年之前

README-zh_CN.md

Nginx UI

Yet another Nginx Web UI

Version: 1.2.0

For English

项目特色

  1. 可在线查看服务器 CPU、内存、load average、磁盘使用率等指标
  2. 可一键申请和自动续签 Let's encrypt 证书
  3. 在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
  4. 使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
  5. 支持简体中文和英语

项目预览

仪表盘

用户列表

域名列表

域名编辑

配置列表

配置编辑

使用前注意

Nginx UI 遵循 Nginx 的标准,创建的网站配置文件位于 Nginx 配置目录(自动检测)下的 sites-available 目录, 启用后的网站的配置文件将会创建一份软连接到 sites-enabled 目录中。因此,您可能需要提前调整配置文件的组织方式。

安装

平台支持

Nginx UI 可在以下平台中可用:

  • Mac OS X 10.10 Yosemite 及之后版本(amd64 / arm64);
  • Linux 2.6.23 及之后版本(x86 / amd64 / arm64);
    • 包括但不限于 Debian 7 / 8、Ubuntu 12.04 / 14.04 及后续版本、CentOS 6 / 7、Arch Linux;
  • FreeBSD (x86 / amd64);
  • OpenBSD (x86 / amd64);
  • Dragonfly BSD (amd64);

您可以在 latest release 中下载最新发行版本

Linux 一键安装脚本

bash <(curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh)

一键安装脚本默认设置的监听端口为 9000,HTTP Challenge 端口默认为 9180, 如果出现端口冲突请进入 /usr/local/etc/nginx-ui/app.ini 修改,并使用 systemctl restart nginx-ui 重启 Nginx UI 服务。

服务启动成功后,在浏览器中访问 http://<your_server_ip>:9000/install 完成后续配置

Nginx 反向代理配置示例

server {
    listen	80;
    listen	[::]:80;

    server_name	<your_server_name>;
    rewrite ^(.*)$  https://$host$1 permanent;
}

server {
    listen	443 ssl http2;
    listen	[::]:443 ssl http2;

    server_name	<your_server_name>;

    ssl_certificate	/path/to/ssl_cert;
    ssl_certificate_key	/path/to/ssl_cert_key;

    location / {
        proxy_set_header Host $host;
        proxy_set_header   X-Real-IP            $remote_addr;
        proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto    $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection upgrade;
        proxy_pass http://127.0.0.1:9000/;
    }
}

关于

Nginx UI 由 0xJackyHintay 开发