mirror of
https://github.com/jbowdre/library-syncer.git
synced 2024-12-03 13:12:17 +00:00
add LIBRARY_BROWSE flag to make the library web server browseable
This commit is contained in:
parent
638fbedc0a
commit
d8c9acc36c
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue