diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-11-03 19:21:24 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-11-03 19:21:24 +0000 |
commit | ae807aab041a11dd644aab25adce993db75aa75c (patch) | |
tree | 1d20b04f30837a66d805a396adfa5ff6b82db0fb | |
parent | Bump deps (diff) | |
download | miniserve-ae807aab041a11dd644aab25adce993db75aa75c.tar.gz miniserve-ae807aab041a11dd644aab25adce993db75aa75c.zip |
Document how to generate a working sha256sum (fixes #401)
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -36,6 +36,11 @@ Sometimes this is just a more practical and quick way than doing things properly miniserve --auth joe:123 unreleased-linux-distros/ +### Require username/password as hash: + + pw=$(echo -n "123" | sha256sum | cut -f 1 -d ' ') + miniserve --auth joe:sha256:$pw unreleased-linux-distros/ + ### Generate random 6-hexdigit URL: miniserve -i 192.168.0.1 --random-route /tmp |