在线查看服务器 CPU、内存、系统负载、磁盘使用率等指标
在线 ChatGPT 助理
一键申请和自动续签 Let's encrypt 证书
在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
在线查看 Nginx 日志
使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
保存配置后自动测试配置文件并重载 Nginx
基于网页浏览器的高级命令行终端
支持深色模式
自适应网页设计
|
3 年之前 | |
---|---|---|
frontend | 3 年之前 | |
resources | 3 年之前 | |
server | 3 年之前 | |
.editorconfig | 4 年之前 | |
.gitignore | 3 年之前 | |
README-zh_CN.md | 3 年之前 | |
README.md | 3 年之前 | |
app.example.ini | 3 年之前 | |
go.mod | 3 年之前 | |
go.sum | 3 年之前 | |
install.sh | 3 年之前 | |
main.go | 3 年之前 | |
nginx-ui.service | 3 年之前 |
Yet another Nginx Web UI
Version: 1.1.0
Nginx UI 遵循 Nginx 的标准,创建的网站配置文件位于 Nginx 配置目录(自动检测)下的 sites-available
目录, 启用后的网站的配置文件将会创建一份软连接到 sites-enabled
目录中。因此,您可能需要调整配置文件的组织方式。
克隆项目
git clone https://github.com/0xJacky/nginx-ui
编译后端
cd server
go build -o nginx-ui-server main.go
启动后端
./nginx-ui-server
nohup ./nginx-ui-server &
添加配置文件到 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/;
}
}
初始化系统
在浏览器中访问 https://<your_server_name>/install
输入用户名和密码创建初始账户。