Error during parsing: unrecognized parameter 'basicauth'

{
       admin localhost:2019 {
               basicauth user password
      }
}

Error: adapting config using caddyfile: parsing caddyfile tokens for ‘admin’: /etc/caddy/Caddyfile:3 - Error during parsing: unrecognized parameter ‘basicauth’

Can I Help Me ?

What is your use case?

The admin API can only be accessed on the loopback interface (by default). So unless you have untrusted code running on your system (in which case, it’s game over anyways), there’s not really a need for authentication.

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