Ive been using caddy for awhile as a basic web server and its great. but now im interested in something a little more complicated and wanted to ask some questions before i started.
i want to use caddy to be a reverse proxy to a API beingn served over https, but I want it to be password protected and available to multiple users.
i see with basic auth i can set a username and password for the realm it “defends” (like /whatever). But what I dont understand is how would i use basic auth to protect something like an API’s endpoints (do I set a rule for each path in the API?)
my second question is, can i use basic auth with multiple users for the same realms? how would i have multiple username/passwords for the same realm (the API’s endpoints)?
thanks!