refactor(web): implement nginx reverse proxy for telemetry dashboard

Transition telemetry dashboard integration from an external URL approach to a local reverse proxy via Nginx. This simplifies client-side connectivity by routing all telemetry requests through the existing web server's domain.

- Configure Nginx to proxy `/telemetry/` sub-paths to the internal telemetry service
- Implement `sub_filter` in Nginx to rewrite root-relative paths for the SPA
- Remove `VITE_TELEMETRY_URL` build arguments and environment variable dependencies
- Simplify `TelemetryPage` to use a relative `/telemetry` base path
- Clean up deployment workflows and Dockerfile by removing unused telemetry build args
This commit is contained in:
MythEclipse
2026-06-07 23:44:57 +07:00
parent 9602a64e18
commit 4dde9d8408
4 changed files with 72 additions and 46 deletions
-2
View File
@@ -11,8 +11,6 @@ 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