Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring if service path prefix is stripped #2254

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

jvstme
Copy link
Collaborator

@jvstme jvstme commented Jan 31, 2025

  • Add the strip_prefix setting to allow configuring whether the path prefix is stripped when forwarding requests to services without a gateway.
  • Update URLReplacer to not add the prefix to URLs that already have it. If a web app is configured to run with a prefix, it can log its URLs with the prefix, so dstack shouldn't add the prefix for the second time.
  • Add a Dash example to docs.

Closes #2250

- Add the `strip_prefix` setting to allow
  configuring whether the path prefix is stripped
  when forwarding requests to services without a
  gateway.
- Update `URLReplacer` to not add the prefix to
  URLs that already have it. If a web app is
  configured to run with a prefix, it can log its
  URLs with the prefix, so `dstack` shouldn't add
  the prefix for the second time.
- Add a Dash example to docs.
@jvstme jvstme requested a review from un-def February 3, 2025 08:35
@jvstme jvstme merged commit 439af8d into master Feb 4, 2025
24 checks passed
@jvstme jvstme deleted the issue_2250_strip_prefix branch February 4, 2025 09:28
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.

[Feature]: Configuring whether path prefix is stripped for services w/o a gateway
2 participants