Created
July 31, 2023 21:20
-
-
Save dubcl/49c8152f4b80ebb6a3321a5fb587d419 to your computer and use it in GitHub Desktop.
Caddyfile simple basic auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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