Skip to content

firerpa/hub

Repository files navigation

Firerpa device hub | FIRERPA 本地版设备管理平台。

demo

demo

How to develop

There are some hardcoded default login and recovery passwords. Please search for ssl-web-credential and password in server.py to modify them. 有一些硬编码的默认登录密码及恢复密码,请在 server.py 搜索 ssl-web-credential 及 password 修改。

The project consists of a frontend and a backend. This repository is the backend, and it already includes the packaged frontend code. If you need to modify the frontend, please go to the hub-vue project, repackage the frontend code, and replace the existing files in server/html and server/static accordingly. 本项目分为前后端,本项目为后端,已包含打包好的前端代码。如需修改前端,请转到 hub-vue 项目,并将重新打包的前端代码平替到 server/html、server/static。

How to build

Run the below command to build the Docker image. 运行如下命令构建 docker 镜像。

docker build -t hub .

How to run

We recommend running Docker on a Linux system, as Docker networking on Windows hosts may not properly connect devices with the services inside the Docker container. 我们建议在 Linux 系统上运行 docker,windows 宿主机的 docker 网络可能无法正确的使设备和 docker 内的服务连通。

docker run -d --rm --name hub --privileged -v ~/hub:/user -e DOMAIN=firerpa.local -e WEB_PORT=8000 -e API_PORT=65000 -e ADDR=192.168.1.2 -p 8000:8000 -p 65000:65000 --restart always hub:latest

WEB_PORT is the port bound to the HTTP service, API_PORT is the port bound to the client API (recommended to be 65000), and ADDR is the internal IP address of the Docker host. WEB_PORT 是HTTP服务绑定的端口,API_PORT 是客户端 API 绑定的端口(建议为 65000),ADDR 是 docker 宿主机的内网 IP 地址。

About

Firerpa device hub | FIRERPA 本地版设备管理平台。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published