Dynamic / Manageable basic auth users

1. The problem I’m having:

I’d like to protect an endpoint with basic auth, but also be able to create/delete/edit basic auth users without having to change the Caddyfile.
The best would be to be able to do it via a web interface (without having to connect to the server in ssh and make terminal commands or modify a file)

Do you have any idea how I could do this?
Thank you !

Caddy has an API you can use to change its configuration dynamically: API — Caddy Documentation

Just wire it up to a simple front-end that lets you manage basic auth users. Done! :slight_smile:

I’d suggest using something like https://www.authelia.com/ instead. It integrates well with Caddy with the forward_auth directive.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.