Skip to content

Enable root_path configuration for reverse proxy support - #14

Merged
ritwikshanker merged 1 commit into
mainfrom
bugFix/docs-path
Jun 26, 2026
Merged

Enable root_path configuration for reverse proxy support#14
ritwikshanker merged 1 commit into
mainfrom
bugFix/docs-path

Conversation

@ritwikshanker

Copy link
Copy Markdown
Collaborator

This pull request updates the server configuration and initialization to support specifying a root path for deployment behind a reverse proxy. The main changes include enabling the root_path setting in the configuration and ensuring it is used when initializing the FastAPI application.

Server configuration and deployment:

  • Enabled the root_path setting in Settings to allow specifying a mount prefix when serving behind a reverse proxy, with an empty default for local development (src/data_commons_search/config.py).
  • Updated the FastAPI app initialization to use the configured root_path, ensuring correct URL routing when deployed with a mount prefix (src/data_commons_search/main.py)

Copilot AI review requested due to automatic review settings June 26, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ritwikshanker
ritwikshanker merged commit 1e342ce into main Jun 26, 2026
6 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