diff --git a/.env.example b/.env.example index d184751..723c491 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,29 @@ # The Graph (optional — falls back to hardcoded values) THEGRAPH_API_KEY= + +# Discovery Service — Explore capability catalog (legacy pipelines by default). +DISCOVERY_SERVICE_URL=https://discovery-service-production-8955.up.railway.app + +# PymtHouse OIDC (device login + signer JWT exchange facade) +PYMTHOUSE_ISSUER_URL=http://localhost:3001/api/v1/oidc +# Public app client id (OAuth client_id) — used for usage/balance Builder API calls +PYMTHOUSE_PUBLIC_CLIENT_ID= +PYMTHOUSE_M2M_CLIENT_ID= +PYMTHOUSE_M2M_CLIENT_SECRET= +# Initiate login URI for device flow (register on pymthouse app): +# http://localhost:3002/api/auth/initiate-login +# Public signer API for clients (pymthouse proxy — records usage). Not raw DMZ :8080. +PYMTHOUSE_SIGNER_URL=http://localhost:3001/api/signer +# Set to 1 for local dev when issuer uses http://127.0.0.1 +PYMTHOUSE_ALLOW_INSECURE_HTTP= + +# Browser gateway relay (orchestrator LV2V via same-origin HTTP segments) +GATEWAY_ENABLED=0 +NEXT_PUBLIC_GATEWAY_ENABLED=0 +# Gateway server calls signer on the same host:port as the dashboard (proxied to PYMTHOUSE_SIGNER_URL upstream) +GATEWAY_SIGNER_FROM_REQUEST_ORIGIN=1 +# Optional overrides (defaults to PYMTHOUSE_SIGNER_URL + LIVEPEER_DISCOVERY_SERVICE_URL) +# GATEWAY_DISCOVERY_URL= +# GATEWAY_DISCOVERY_TIMEOUT_MS=60000 +# GATEWAY_USE_TOFU=1 +# GATEWAY_PAYMENT_INTERVAL_MS=2000 diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx index f2c91a1..3fb1a91 100644 --- a/app/(app)/layout.tsx +++ b/app/(app)/layout.tsx @@ -2,7 +2,7 @@ import type { Metadata } from "next"; import type { CSSProperties } from "react"; import { GeistSans } from "geist/font/sans"; import { GeistMono } from "geist/font/mono"; -import { AuthProvider } from "@/components/dashboard/AuthContext"; +import { DashboardProviders } from "@/components/dashboard/DashboardProviders"; import { ThemeProvider } from "@/components/dashboard/ThemeContext"; import DashboardSidebar from "@/components/dashboard/DashboardSidebar"; import KeyboardShortcuts from "@/components/dashboard/KeyboardShortcuts"; @@ -58,7 +58,7 @@ export default function DashboardLayout({ paints. ThemeProvider below takes over post-hydration. */}