add LIBRARY_BROWSE flag to make the library web server browseable

This commit is contained in:
John Bowdre 2022-08-08 08:47:01 -05:00
parent 638fbedc0a
commit d8c9acc36c
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,10 @@ EOF
fi
fi
if [ "$LIBRARY_BROWSE" == "true" ]; then
sed -i 's/file_server/file_server browse/' /etc/caddy/Caddyfile
fi
echo -e "[$(date +"%Y/%m/%d-%H:%M:%S")] Starting caddy..."
/usr/sbin/caddy start -config /etc/caddy/Caddyfile

View file

@ -14,6 +14,7 @@ services:
- TLS_NAME=library.lab.bowdre.net
- TLS_CUSTOM_CERT=true
- LIBRARY_NAME=Library
- LIBRARY_BROWSE=true
ports:
- "80:80/tcp"
- "443:443/tcp"