feat(web): externalize telemetry URL via environment variables

Replace the hardcoded Nginx proxy configuration with a dynamic environment variable approach. This allows the telemetry dashboard to be loaded via a public URL instead of relying on a local Tailscale proxy.

- Add `VITE_TELEMETRY_URL` build argument to Dockerfile
- Pass `VITE_TELEMETRY_URL` through GitHub Actions deployment workflow
- Remove `/telemetry/` location block from nginx.conf
- Update `TelemetryPage` to use the new environment variable and improve iframe loading state management
This commit is contained in:
MythEclipse
2026-06-07 23:31:15 +07:00
parent cd93d1a06d
commit 9602a64e18
4 changed files with 53 additions and 40 deletions
+2
View File
@@ -11,6 +11,8 @@ COPY packages/shared packages/shared
COPY apps/web apps/web
ARG VITE_API_BASE_URL
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
ARG VITE_TELEMETRY_URL
ENV VITE_TELEMETRY_URL=$VITE_TELEMETRY_URL
RUN bun run --cwd packages/shared build
RUN bun run --cwd apps/web build