Draft: offline monitor app
Serve an offline monitor app on a device to allow one to monitor the services from that device without internet connection, from the LAN.
Steps to do currently
- patch slapos.core: slapos.core!817
- patch SR to be monitored: replace "softinst" in monitor-base-url to IPv6, replace officejs.com by IPv6
- Root nginx proxy: Put nginx-proxy/nginx.conf in /opt/nginx as well as a certificate and key, and run nginx as root
- Enter the following monitor setup URL : https://[OFFLINE_MONITOR_IPV6]:8088/offline-monitor/#page=settings_configurator&url=https://[OFFLINE_MONITOR_IPV6]:8088/monitor-base-url/public/feeds&username=admin&password=PASSWORD
- Redistribute IPv6 in re6st conf:
daemon "exec dnsmasq --conf-file=/dev/null -p0 -k8 - -i $re6stnet_iface -F ${re6stnet_subnet%/*},ra-only,$((${re6stnet_subnet#*/}>64 ? ${re6stnet_subnet#*/} : 64)),1d"
main-interface enp0s31f6
interface enp0s31f6
Nginx Proxy
- http://[SERVICE_IPV6]:8081 --> http://[OFFLINE_MONITOR_IPV6]:8088/monitor-base-url/
- https://[OFFLINE_MONITOR_IPV6]:8196 --> http://[OFFLINE_MONITOR_IPV6]:8088/offline-monitor/
IPV6 addresses:
- SERVICE_IPV6: IPv6 of partition containing service to monitor
- OFFLINE_MONITOR_IPV6: IPv6 of partition containing offline monitor app