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

0xJacky c8732ddb08 fix install script 3 年之前
frontend f097acb3e9 make translations in frontend 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 35d144c678 use vue-gettext 3 年之前
README.md 35d144c678 use vue-gettext 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 c8732ddb08 fix install script 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.1.0

For English

项目特色

  1. 可在线查看服务器 CPU、内存、load average、磁盘使用率等指标
  2. 可一键申请 Let's encrypt 证书
  3. 可自动续签 Let's encrypt 证书
  4. 在线编辑网站配置文件

项目预览

登录

仪表盘

用户列表

域名列表

域名编辑

配置列表

配置编辑

使用前注意

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

安装

  1. 克隆项目

    git clone https://github.com/0xJacky/nginx-ui
    
  2. 编译后端

    cd server
    go build -o nginx-ui-server main.go
    
  3. 启动后端

    1. 前台启动 ./nginx-ui-server
    2. 后台启动 nohup ./nginx-ui-server &
  4. 添加配置文件到 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/;
    }
    }
    
  5. 初始化系统

在浏览器中访问 https://<your_server_name>/install

输入用户名和密码创建初始账户。