update readme

This commit is contained in:
Mathematical Michael 2023-09-28 22:58:52 +00:00
parent e4d31e93f4
commit 9a7eed981e

View File

@ -1,10 +1,31 @@
# Plain Apache Server
This will mount `/data/` (`/<mountpoint>`) and reveal its contents. Change as needed in `docker-compose.yml`.
## Instructions
`docker-compose up -d` and visit localhost:8080
`docker-compose up -d` and visit localhost:8080.
security is on you, I like Cloudflare Tunnels via `cloudflared`
## Required
Docker
docker
## Stack
Apache2 + htpasswd
`apache2` + `htpasswd` (per-folder `.htpasswd` file)
## Password
navigate to directory `/<mountpoint>/<subdir>`, then run this to create a password for "guest":
`htpasswd .htpasswd guest` (`htpasswd <path-to-file> <user>`)
(note: if you dont have `htpasswd` on your system, replace with `docker exec -ti webserver htpasswd` to use the one in the docker container and replace the path with the one in the `.htaccess` file below)
and create `.htaccess` in the same directory:
```
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /usr/local/apache2/htdocs/<subdir>/.htpasswd
Require valid-user
```