Skip to content

Fix network API calls failing when Docker deployment is accessed remotely#324

Merged
Edwardvaneechoud merged 3 commits intomainfrom
claude/fix-network-api-calls-Y463A
Feb 9, 2026
Merged

Fix network API calls failing when Docker deployment is accessed remotely#324
Edwardvaneechoud merged 3 commits intomainfrom
claude/fix-network-api-calls-Y463A

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

The frontend axios client was hardcoded to http://localhost:63578, which
fails when accessing the Docker deployment from another machine on the
network since the browser resolves localhost to the user's own machine.

  • Make flowfileCorebaseURL runtime-dynamic: use direct localhost URL in
    Electron mode, relative /api/ path in web/Docker mode
  • Add nginx.conf with reverse proxy rules that forward /api/* requests
    to flowfile-core:63578, including SSE support for log streaming
  • Update Dockerfile to use the external nginx.conf instead of inline config
  • Fix LogViewer.vue EventSource URL construction to handle relative paths
  • Add vite dev server proxy so npm run dev:web also works with /api/ paths

https://claude.ai/code/session_01HtZJr4MnVSYw8MGuqgKiTq

…tely

The frontend axios client was hardcoded to http://localhost:63578, which
fails when accessing the Docker deployment from another machine on the
network since the browser resolves localhost to the user's own machine.

- Make flowfileCorebaseURL runtime-dynamic: use direct localhost URL in
  Electron mode, relative /api/ path in web/Docker mode
- Add nginx.conf with reverse proxy rules that forward /api/* requests
  to flowfile-core:63578, including SSE support for log streaming
- Update Dockerfile to use the external nginx.conf instead of inline config
- Fix LogViewer.vue EventSource URL construction to handle relative paths
- Add vite dev server proxy so npm run dev:web also works with /api/ paths

https://claude.ai/code/session_01HtZJr4MnVSYw8MGuqgKiTq
navigator.clipboard is only available in secure contexts (HTTPS or
localhost). When accessing the Docker deployment over plain HTTP from
another machine on the network, navigator.clipboard is undefined.

Add a fallback using the legacy document.execCommand('copy') approach
for insecure contexts so the copy-to-clipboard buttons in SetupView
work regardless of the protocol.

https://claude.ai/code/session_01HtZJr4MnVSYw8MGuqgKiTq
…irects

FastAPI issues 307 redirects to add trailing slashes (e.g. /editor/create_flow
→ /editor/create_flow/). When proxy_set_header Host $host was used, the
redirect Location header used the external hostname without port
(http://192.168.50.176/editor/create_flow/), bypassing both the /api/
prefix and the correct port (8080).

Fix by removing the Host override so nginx uses the default $proxy_host
(flowfile-core:63578). Now the backend's redirect points to the internal
host, and nginx's built-in proxy_redirect default correctly rewrites it
to http://<external-host>:8080/api/editor/create_flow/.

Also remove premature WebSocket headers (Connection: "upgrade" was being
sent on all requests) and add X-Forwarded-Host so the backend can access
the original host if needed.

https://claude.ai/code/session_01HtZJr4MnVSYw8MGuqgKiTq
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 8, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 35eff1c
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/6988eda1f1752200083fd567

@Edwardvaneechoud Edwardvaneechoud merged commit 8a9ca75 into main Feb 9, 2026
17 checks passed
@Edwardvaneechoud Edwardvaneechoud deleted the claude/fix-network-api-calls-Y463A branch February 9, 2026 04:34
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.

2 participants