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

feat: add a add_prefix middleware #51

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

polds
Copy link
Contributor

@polds polds commented Jan 20, 2025

This will allow you to translate:

foo.mydomain.com => 192.168.1.99:8000/foo (for example)

Use:

proxy.*.middlewares.request.add_prefix: "/foo"

This will allow you to translate:

`foo.mydomain.com` => `192.168.1.99:8000/foo` (for example)
@yusing yusing merged commit 7dd00d2 into yusing:v0.8 Jan 23, 2025
4 checks passed
Copy link

@Jorge-Martin777 Jorge-Martin777 left a comment

Choose a reason for hiding this comment

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

internal/net/http/middleware/modify_request.go

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.

3 participants