mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-26 13:21:14 +00:00
Add RRDTool integration for monitoring WireGuard stats
Introduces a new RRDTool service for tracking WireGuard interface and peer statistics. Adds required Docker configuration, API key handling, and new scripts for managing RRD files. Updates the `entrypoint.sh` and API permissions to accommodate the new functionality.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$COMPOSE_VERSION" != "02b" ]]; then
|
||||
if [[ "$COMPOSE_VERSION" != "02r" ]]; then
|
||||
echo "ERROR: Please upgrade your docker compose file. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
@@ -17,6 +17,10 @@ if [[ "${DEBUG_MODE,,}" == "true" ]]; then
|
||||
DEBUG_VALUE="True"
|
||||
fi
|
||||
|
||||
if [ ! -f /app_secrets/rrdtool_key ]; then
|
||||
cat /proc/sys/kernel/random/uuid > /app_secrets/rrdtool_key
|
||||
fi
|
||||
|
||||
cat > /app/wireguard_webadmin/production_settings.py <<EOL
|
||||
DEBUG = $DEBUG_VALUE
|
||||
ALLOWED_HOSTS = ['wireguard-webadmin', '$SERVER_ADDRESS']
|
||||
|
Reference in New Issue
Block a user