-
Notifications
You must be signed in to change notification settings - Fork 899
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
How to set multiple users and passwords in Naiveproxy? #587
Comments
I think we need to wait for the changes being merged into naiveproxy's fork of |
Then to set multiple users, I think just adding multiple {
order forward_proxy before file_server
}
:443, example.com {
tls [email protected]
forward_proxy {
basic_auth user pass
+ basic_auth john doe
hide_ip
hide_via
probe_resistance
}
file_server {
root /var/www/html
}
} |
I've compared github.com/caddyserver/forwardproxy@caddy2 and github.com/klzgrad/forwardproxy@naive , there are many differences in 4 main go files: httpclient.go, acl.go, caddyfile.go, forwardproxy.go , |
Upstream still needs some fixes for errors with the log directive. Then the caddy2 patch needs to be merged and I'll rebase the naive patch. |
@diyism If you're eager to try out the updates, I've been doing this in my fork. Please notice that this fork also contains UoT support from SagerNet. Although it seems to have no effect on normal use cases, please be sure to backup your important data for possible rollbacks before have a try on it. |
Great, thanks, I'll try your version. |
Here is my multi-user config.json for your reference, it is based on the one made by pocat ( https://hub.docker.com/r/pocat/naiveproxy ) and has been working with klzgrad's forward proxy for a year for me.
|
I`m testing your fork specially UoT. It works fine. Can you please add a PR add UoT support? Hopefully @klzgrad accept it 😁 |
@privatesupport I think there were issues discussing about UoT suport and turns out a dedicate UDP proxy might be what you'll want. Anyway the UoT support is there if you'd really like to use it with naiveproxy, and I don't think we should bundle everything together, which brings unnecessary complexity and makes it difficult for developers to maintain their software. |
|
caddyserver/forwardproxy#99
This issue has been merged into caddy2, so how to set multiple users and passwords in Naiveproxy?
The text was updated successfully, but these errors were encountered: