-
Notifications
You must be signed in to change notification settings - Fork 892
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
Can custom forward_proxy for caddy2 support multi basic-auth config #137
Comments
try
|
I use @mixcool's binary before build one for myself, his binary is basicauth. but this is not the problem. I've found upstream forward_proxy don't support multi-user // TODO: Support multiple basicauths.
if h.BasicauthUser != "" || h.BasicauthPass != "" {
return d.Err("Multi-user basicauth is not supported")
} |
Maybe not a good fix but I think you can just use multiple forward_proxy calls to achieve it. Something like forward_proxy { |
This issue should be redirected to upstream caddyserver/forwardproxy#81. |
Multiple auth is fixed here https://github.com/klzgrad/forwardproxy/releases/tag/v2.7.6-naive |
which is fine in caddy1.
But I got error message like this:
run: adapting config using caddyfile: parsing caddyfile tokens for 'route': Caddyfile_vx:13 - Error during parsing: parsing caddyfile tokens for 'forward_proxy': Caddyfile_vx:7 - Error during parsing: Multi-user
basicauth is not supported
which with
Configs
The text was updated successfully, but these errors were encountered: