Monviech / os-caddy-plugin

Caddy Plugin with GUI for OPNsense
Other
38 stars 0 forks source link

Simple Basic Auth implementation #80

Closed Monviech closed 7 months ago

Monviech commented 7 months ago

I need basic auth for one or two things I do, so I'm adding it as functionality.

https://caddyserver.com/docs/caddyfile/directives/basicauth

It's very simple, just a list of users where multiple can be selected per domain or subdomain. Access will the be restricted to those users.

Basic Auth will match AFTER access lists.

Monviech commented 7 months ago

Here is the package for testing if anybody wants to. I won't push this yet, needs some more testing. So far it seems to work for me.

https://github.com/Monviech/os-caddy-plugin/blob/basicauth/os-caddy-plugin/FreeBSD%3A13%3Aamd64/os-caddy-1.4.1.pkg