Skip to content

fix(dashboard): proxy API in Traefik image#131

Open
aqilaziz wants to merge 1 commit into
rmyndharis:mainfrom
aqilaziz:fix/dashboard-traefik-api-proxy
Open

fix(dashboard): proxy API in Traefik image#131
aqilaziz wants to merge 1 commit into
rmyndharis:mainfrom
aqilaziz:fix/dashboard-traefik-api-proxy

Conversation

@aqilaziz
Copy link
Copy Markdown

@aqilaziz aqilaziz commented May 22, 2026

Description

Adds same-origin proxying for dashboard API and Socket.IO traffic in the Traefik dashboard image.

dashboard/Dockerfile.traefik previously generated an nginx config that only served the SPA. The dashboard calls /api/... from the browser, so deployments behind an external reverse proxy would send API validation requests back to the dashboard container and show Invalid API Key even when the key was valid.

This forwards:

  • /api/ to openwa-api:2785
  • /socket.io/ to openwa-api:2785

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Tests added/updated
  • Documentation updated
  • Lint passes
  • Self-reviewed

Screenshots (if applicable)

N/A

Related Issues

Closes #116

Testing

  • git diff --check
  • Docker build not run locally: Docker CLI is not available in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard shows "Invalid API Key" when deployed behind external reverse proxy (Traefik)

1 participant