Skip to content

Instantly share code, notes, and snippets.

@dubcl
Created July 31, 2023 21:20
Show Gist options
  • Save dubcl/49c8152f4b80ebb6a3321a5fb587d419 to your computer and use it in GitHub Desktop.
Save dubcl/49c8152f4b80ebb6a3321a5fb587d419 to your computer and use it in GitHub Desktop.
Caddyfile simple basic auth
:80 {
root * /path/to/your/files
file_server {
browse
}
basicauth /* {
username hash
# hash is generated by ./caddy hash-password
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment