文件名称:ff-node-monitor:监控 Freifunk 节点
文件大小:200KB
文件格式:ZIP
更新时间:2024-08-13 14:25:40
JavaScript
ff-node-monitor 这是 Freifunk 网络的简单 Web 服务,允许节点操作员注册以监控其节点。 它使用nodes.json的来检测哪些节点在线,并在在线状态发生变化时发送通知。 设置 设置由三部分组成:构建服务、设置数据库和配置服务作为守护程序运行。 我已经在 Debian Stretch 系统上测试了以下步骤; 如果您使用不同的版本或不同的发行版,则可能需要相应地更改某些步骤。 确保您至少有 1.5 GB 的可用磁盘空间。 构建过程 首先,让我们为这个服务创建一个用户,并切换到它的主目录: sudo adduser ff-node-monitor --home /opt/ff-node-monitor --system 我们需要一些用于构建过程的开发库: sudo apt install libssl-dev libpq-dev libc6-dev cu
【文件预览】:
ff-node-monitor-master
----rust-version(19B)
----.gitignore(62B)
----README.md(8KB)
----bors.toml(37B)
----CHANGELOG.md(375B)
----.github()
--------workflows()
----ff-node-monitor.service(327B)
----Cargo.toml(779B)
----migrations()
--------2018-05-14-165406_v0()
--------.gitkeep(0B)
--------00000000000000_diesel_initial_setup()
----static()
--------jquery-3.3.1.js(265KB)
--------jquery-3.3.1.min.js(85KB)
--------chosen-1.8.7()
--------style.css(2KB)
----Rocket.toml.dist(2KB)
----LICENSE(34KB)
----src()
--------models.rs(2KB)
--------schema.rs(268B)
--------routes.rs(6KB)
--------cron.rs(7KB)
--------config.rs(4KB)
--------util.rs(5KB)
--------action.rs(4KB)
--------main.rs(2KB)
----diesel.toml(38B)
----vagrant()
--------.gitignore(24B)
--------bootstrap.sh(5KB)
--------Vagrantfile(958B)
--------vagrant.config.dist(375B)
----.editorconfig(235B)
----Cargo.lock(72KB)
----templates()
--------prepare_action.html.hbs(1KB)
--------notification.eml.hbs(1KB)
--------index.html.hbs(1KB)
--------list.html.hbs(3KB)
--------run_action.html.hbs(1KB)
--------cron.txt.hbs(0B)
--------prepare_action_error.html.hbs(1KB)
--------confirm_action.eml.hbs(2KB)
--------run_action_error.html.hbs(1KB)
--------partials()
--------cron_error.txt.hbs(88B)
--------list_error.html.hbs(1KB)