-
|
Hi Im trying to switch from caddy and have a problem where I need custom locations to be public and the rest(base) behind auth. My working caddy config is: I see I cannot add multiple proxy host of same domain, even if there's a path added. I assume this is per design. I see auth_request command but not sure howto make it work. Any help is appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
what kind of auth do you mean? basic auth? |
Beta Was this translation helpful? Give feedback.
-
|
@Zoey2936 @DavidCraftDev First off, thanks for this great project – I use it for every project of mine :) I have a similar need. I'm using NPMplus to manage api.x.ir (in proxy host section), which points to my backend service. I want to protect only the /swagger/ endpoint with Basic Authentication, while keeping the rest public. I've already created an Access List with my credentials. However, in the "Custom Locations" section of my proxy host, I don't see any option to apply that Access List to a specific location (e.g., /swagger/). Is it currently possible to do this through the UI? If not, could this be considered as a feature request? Thank you! |
Beta Was this translation helpful? Give feedback.
for the custom locations you can press the gear button and put
auth_basic off;(to disable basic auth) and/orallow all;(to disable ip blockin) in the text box.