mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
Yet another WebUI for Nginx
https://nginxui.com
chatgpt-appcode-completioncopilotcrondeepseek-r1dockergoletsencryptlinuxmacosmcpmcp-servernginxself-hostedvuewebuiwindows
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9) --- updated-dependencies: - dependency-name: hosted-git-info dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
frontend | ||
screenshots | ||
server | ||
.editorconfig | ||
.gitignore | ||
build.sh | ||
Dockerfile | ||
install.sh | ||
nginx.conf | ||
README.md | ||
sources.list | ||
start.sh |
Nginx UI
Yet another Nginx Web UI
Version: 0.1.1
项目特色
- 可在线查看服务器 CPU、内存、load avarage 等指标
- 可一键申请 Let's encrypt 证书
- 在线编辑网站配置文件
使用前注意
Nginx UI 遵循 Nginx 的标准,创建的网站配置文件位于 Nginx 配置目录(自动检测)下的 sites-available 目录, 启用后的网站的配置文件将会创建一份软连接到 sites-enabled 目录中。因此,您可能需要调整配置文件的组织方式。
安装
- 克隆项目
- 运行 install.sh
- 添加配置文件到 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;
root /path/to/nginx-ui-frontend/dist;
index index.html;
location /api {
rewrite /api/(.+) /$1 break;
proxy_pass http://127.0.0.1:9000;
}
location /ws/ {
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_pass http://127.0.0.1:9000/;
}
}
- 添加用户 编辑 server/database.db (sqlite3)
手动计算密码的 md5
md5 -s <text>
进入 auths 表,添加一行数据 name: 用户名,password: <md5 加密后的明文>