FuelBoard Relay: keyless OAuth proxy for UK Fuel Finder API (FastAPI, token + snapshot cache, demo mode)
This commit is contained in:
Executable
+15
@@ -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"
|
||||
Reference in New Issue
Block a user