From 45628aa0d9055f43fe0a91d9232069d0b05f49be Mon Sep 17 00:00:00 2001 From: dormant-user Date: Tue, 26 Nov 2024 06:53:44 -0600 Subject: [PATCH] Add disk reporting with a feature flag --- README.md | 2 ++ docs/genindex.html | 14 ++++++++++---- docs/index.html | 22 ++++++++++++++++++++++ docs/objects.inv | Bin 2001 -> 2026 bytes docs/searchindex.js | 2 +- pyninja/modules/models.py | 24 ++++++++++++++++++++++++ pyninja/monitor/drive.py | 10 ++++++++++ pyninja/monitor/resources.py | 14 ++++++++++++++ pyninja/monitor/routes.py | 24 +++++++++++------------- pyninja/monitor/templates/index.html | 2 +- 10 files changed, 95 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index f50aae3..0c658cb 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ pyninja start - **NINJA_PORT** - Port number for the API server. - **REMOTE_EXECUTION** - Boolean flag to enable remote execution. - **API_SECRET** - Secret access key for running commands on server remotely. +- **DISK_REPORT** - Boolean flag to enable disk report feature using [PyUdisk]. - **MONITOR_USERNAME** - Username to authenticate the monitoring page. - **MONITOR_PASSWORD** - Password to authenticate the monitoring page. - **MONITOR_SESSION** - Session timeout for the monitoring page. @@ -153,3 +154,4 @@ Licensed under the [MIT License][license] [license]: https://github.com/thevickypedia/PyNinja/blob/master/LICENSE [runbook]: https://thevickypedia.github.io/PyNinja/ [samples]: https://github.com/thevickypedia/PyNinja/tree/main/samples +[PyUdisk]: https://github.com/thevickypedia/PyUdisk diff --git a/docs/genindex.html b/docs/genindex.html index 80d63e3..e3d2f2c 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -112,11 +112,13 @@

A

  • api_secret (pyninja.modules.models.EnvConfig attribute)
  • - - + - +