FuelBoard Relay: keyless OAuth proxy for UK Fuel Finder API (FastAPI, token + snapshot cache, demo mode)

This commit is contained in:
FuelBoard Contributor
2026-08-11 14:28:24 +01:00
commit 6a8f3db2d4
6 changed files with 338 additions and 0 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# FuelBoard Relay launcher
set -euo pipefail
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then
echo "⚠ No .env found — running in DEMO mode (no credentials)."
fi
set -a
[ -f .env ] && source .env
set +a
PORT="${FUEL_RELAY_PORT:-8788}"
exec python3 -m uvicorn app.main:app --host 0.0.0.0 --port "$PORT"