diff --git a/README.md b/README.md index 876d157..5d7e748 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,31 @@ # Plain Apache Server +This will mount `/data/` (`/`) 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 `//`, then run this to create a password for "guest": +`htpasswd .htpasswd guest` (`htpasswd `) + +(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//.htpasswd +Require valid-user +``` +