Skip to content

fea: support PROBING_BASE_PATH for reverse proxy deployment#42

Merged
reiase merged 3 commits into
masterfrom
fea/base-path-support
Jun 13, 2026
Merged

fea: support PROBING_BASE_PATH for reverse proxy deployment#42
reiase merged 3 commits into
masterfrom
fea/base-path-support

Conversation

@leepsilon

Copy link
Copy Markdown
Collaborator

When probing is deployed behind a reverse proxy with a sub-path prefix (e.g. /proxy/task-123), set PROBING_BASE_PATH to make all frontend links, API calls, and resource paths work correctly through the proxy.

Server-side:

  • Read PROBING_BASE_PATH env var and inject window.PROBING_BASE_PATH and a fetch interceptor into index.html
  • Rewrite src/href attributes in HTML to include base path prefix
  • Skip PROBING_BASE_PATH in sync_env_settings to avoid SQL parse error

Frontend (WASM):

  • Add base_path module to read window.PROBING_BASE_PATH via wasm-bindgen
  • Configure Dioxus WebHistory with prefix for client-side routing
  • Use with_base() for API URLs, sidebar logo, and file links

leepsilon added 2 commits May 25, 2026 14:36
When probing is deployed behind a reverse proxy with a sub-path prefix
(e.g. /proxy/task-123), set PROBING_BASE_PATH to make all frontend
links, API calls, and resource paths work correctly through the proxy.

Server-side:
- Read PROBING_BASE_PATH env var and inject window.__PROBING_BASE_PATH__
  and a fetch interceptor into index.html
- Rewrite src/href attributes in HTML to include base path prefix
- Skip PROBING_BASE_PATH in sync_env_settings to avoid SQL parse error

Frontend (WASM):
- Add base_path module to read window.__PROBING_BASE_PATH__ via wasm-bindgen
- Configure Dioxus WebHistory with prefix for client-side routing
- Use with_base() for API URLs, sidebar logo, and file links
@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Frontend: handle Nil/Error/TimeSeries responses in execute_query
  instead of throwing generic "DataFrame is Expected" error
- CI: add publish input to workflow_dispatch, deploy job only runs
  on release or when manually toggled
@reiase reiase merged commit 35c6eb9 into master Jun 13, 2026
15 of 16 checks passed
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