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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user