Skip to content

canghai908/zbxtable-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a4ee5bb · Feb 25, 2025

History

71 Commits
Jul 15, 2022
Jul 15, 2022
Feb 25, 2025
Jan 14, 2024
Jul 15, 2022
Jul 15, 2022
Nov 14, 2022
Feb 25, 2025
Jul 15, 2022
Jan 15, 2024
Jul 15, 2022
Feb 25, 2025
Feb 25, 2025
Jul 15, 2022

Repository files navigation

English | 简体中文

zbxtable-web

ZbxTable 前端页面

Build Status

开发

yarn install
yarn serve

访问 http://127.0.0.1:8080

构建

环境:nodejs>10

构建

yarn install
yarn build

构建后的代码默认会存放到 web 文件夹

部署

建议使用 nginx, 配置文件如下

server {
        listen 8088;
        server_name  localhost;
        root    /usr/local/zbxtable/web;
        location /v1 {
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host            $http_host;
                proxy_pass http://127.0.0.1:8084;
        }
        location /  {
                try_files $uri /index.html;
        }

}

拷贝生成的前端文件到/usr/local/zbxtable/web 目录

cp -a web/* /usr/local/zbxtable/web

8084 为 zbxtable 后端程序端口, 重启 nginx 即可使用http://ip:8088 访问系统, 默认账号:admin,密码: Zbxtable