Skip to content

feat: Add reverse proxy and dynamic base_url support#48

Open
charlescng wants to merge 1 commit intomasterfrom
fix/reverse-proxy-support
Open

feat: Add reverse proxy and dynamic base_url support#48
charlescng wants to merge 1 commit intomasterfrom
fix/reverse-proxy-support

Conversation

@charlescng
Copy link
Owner

This PR adds support for running Observium behind a reverse proxy (like Tailscale Serve) by:

  • Enabling 'remoteip' and 'headers' Apache modules.
  • Configuring Apache to trust 'X-Forwarded-For' headers.
  • Injecting dynamic PHP code into 'config.php' to automatically detect the protocol (HTTP/HTTPS) and base path (including subpaths) from request headers.

This allows Observium to function correctly at both the root '/' and subpaths '/observium/' without any manual configuration or hardcoded environment variables.

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.

1 participant