From 9c871b061a8c8c707f20b2c3511e0072bdf25ddf Mon Sep 17 00:00:00 2001 From: DeepZone Date: Wed, 20 May 2026 16:00:09 +0100 Subject: [PATCH] Prepare v0.5.0-beta selfhosting foundation --- .env.example | 25 ++++++++++--- README.md | 36 +++++++++++++++++- RELEASE_NOTES.md | 23 ++++++++++++ ROADMAP.md | 2 +- backend/app/api/routes_health.py | 2 +- backend/app/api/routes_system.py | 2 +- backend/app/main.py | 2 +- backend/pyproject.toml | 2 +- docker-compose.prod.yml | 59 ++++++++++++++++++++++++++++++ docs/operations/backup-restore.md | 32 ++++++++++++++++ docs/operations/logging.md | 26 +++++++++++++ docs/operations/reverse-proxy.md | 41 +++++++++++++++++++++ docs/operations/upgrades.md | 21 +++++++++++ frontend/Dockerfile | 16 +++++--- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- frontend/src/App.tsx | 6 +-- frontend/src/components/Layout.tsx | 2 +- 18 files changed, 278 insertions(+), 25 deletions(-) create mode 100644 docker-compose.prod.yml create mode 100644 docs/operations/backup-restore.md create mode 100644 docs/operations/logging.md create mode 100644 docs/operations/reverse-proxy.md create mode 100644 docs/operations/upgrades.md diff --git a/.env.example b/.env.example index 1b7298c..22d7a10 100644 --- a/.env.example +++ b/.env.example @@ -1,13 +1,26 @@ -DATABASE_URL=sqlite:///./routeforge.db -HTTP_TIMEOUT_SECONDS=10 -CACHE_TTL_SECONDS=900 -RIPESTAT_CACHE_TTL_SECONDS=900 -CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000 -RIPESTAT_BASE_URL=https://stat.ripe.net/data +# General ROUTEFORGE_DEMO_MODE=false +LOG_LEVEL=INFO + +# Database (change POSTGRES_PASSWORD before production use) +POSTGRES_DB=routeforge +POSTGRES_USER=routeforge +POSTGRES_PASSWORD=change-me +DATABASE_URL=postgresql+psycopg://routeforge:change-me@postgres:5432/routeforge + +# CORS (comma-separated list) +CORS_ORIGINS=http://localhost:3000 + +# Frontend runtime/build API target VITE_API_URL=http://localhost:8000 +# RIPEstat +RIPESTAT_BASE_URL=https://stat.ripe.net/data +RIPESTAT_CACHE_TTL_SECONDS=900 RIPESTAT_TIMEOUT_SECONDS=10 RIPESTAT_MAX_RETRIES=1 RIPESTAT_RETRY_BACKOFF_SECONDS=0.5 RIPESTAT_USE_STALE_CACHE_ON_ERROR=true + +# Optional general HTTP timeout for backend calls +HTTP_TIMEOUT_SECONDS=10 diff --git a/README.md b/README.md index 4d7fbc9..8fec9f4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ RouteForge is a read-only routing preflight and explainability tool for BGP, RPKI, Registry/IRR and Routing Visibility checks. -Current user-facing version: **v0.4.2-alpha**. +Current user-facing version: **v0.5.0-beta**.