From 9a7eed981eab74a76d639a4985f6ba911c046bfe Mon Sep 17 00:00:00 2001 From: mm Date: Thu, 28 Sep 2023 22:58:52 +0000 Subject: [PATCH] update readme --- README.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) 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 +``` +