Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring
TypeScript diagramhomelabhomelab-infrastructure-observabilitynetworkproxmox-veself-hostedzigbeezwavezwave-js
docs: update README configuration section to reflect .env-based setup
Pouzor2de5a5b3aac8
diff --git a/README.md b/README.mdindex 8753b68..fcbab67 100644--- a/README.md+++ b/README.md@@ -18,9 +18,11 @@ docker compose up -dOpen **http://localhost:3000** — login with `admin` / `admin`.-> Change the password before exposing to a network: edit `backend/config.yml` and replace `password_hash` with a new bcrypt hash.+> Change the password before exposing to a network: edit `.env` and update `AUTH_USERNAME` / `AUTH_PASSWORD_HASH`.>-> Generate a hash: `docker compose exec backend python -c "from passlib.context import CryptContext; print(CryptContext(schemes=['bcrypt']).hash('yourpassword'))"`+> Generate a new hash: `docker compose exec backend python -c "from passlib.context import CryptContext; print(CryptContext(schemes=['bcrypt']).hash('yourpassword'))"`+>+> ⚠️ Keep the single quotes around the hash value in `.env` — bcrypt hashes contain `$` characters that Docker Compose would otherwise misinterpret.---@@ -38,19 +40,20 @@ This installs the backend as a systemd service and serves the frontend via nginx## Configuration-`backend/config.yml`:+All configuration is done via `.env` (copied from `.env.example`):++```env+SECRET_KEY=change_me_in_production-```yaml-auth:- username: admin- password_hash: "$2b$12$..." # bcrypt hash+# Auth — default: admin / admin+AUTH_USERNAME=admin+AUTH_PASSWORD_HASH='$2b$12$...' # bcrypt hash — keep single quotes-scanner:- ranges:- - "192.168.1.0/24" # CIDR ranges to scan+# CIDR ranges to scan+SCANNER_RANGES=["192.168.1.0/24"]-status_checker:- interval_seconds: 60 # how often to check node status+# How often to check node status (seconds)+STATUS_CHECKER_INTERVAL=60```All settings are also editable in-app via the **Scan Network** button.@@ -130,7 +133,7 @@ Proxmox nodes render as a resizable group container. VM and LXC nodes can be placd backendpython3.13 -m venv .venv && source .venv/bin/activatepip install -r requirements.txt-cp .env.example .env # edit SECRET_KEY+cp ../.env.example .env # edit SECRET_KEY and review defaultsuvicorn app.main:app --reload --port 8000```