Initial commit.
This commit is contained in:
24
README.md
Normal file
24
README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Generate user-password tuple
|
||||
Install utility tool:
|
||||
```bash
|
||||
sudo apt install apache2-utils
|
||||
```
|
||||
|
||||
Generate tuple when file `.htpasswd` does not exist yet:
|
||||
```bash
|
||||
htpasswd -c ./.htpasswd myuser
|
||||
# Then type password twice
|
||||
```
|
||||
|
||||
Generate tuple when file `.htpasswd` already exists:
|
||||
```bash
|
||||
htpasswd ./.htpasswd myuser
|
||||
# Then type password twice
|
||||
```
|
||||
# Launch server
|
||||
```bash
|
||||
docker compose up
|
||||
```
|
||||
|
||||
## Access to secret file
|
||||
[http://localhost:50080/secret-file.txt](http://localhost:50080/secret-file.txt)
|
||||
Reference in New Issue
Block a user