1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

'fancyindex on;' in nginx/templates/iiab.conf.j2 instead + box/info resiliency

This commit is contained in:
root 2023-01-10 19:42:19 -05:00
parent 1b2930c52d
commit 0ac162fdc6
3 changed files with 8 additions and 8 deletions

View file

@ -11,6 +11,10 @@ location /local_content/ {
fancyindex on; # autoindex on;
}
location /info {
fancyindex on; # Directory listing for http://box/info/admin-console/
}
location /modules/ {
fancyindex on; # Enable fancy indexes.
fancyindex_exact_size off; # Output human-readable file sizes.

View file

@ -7,10 +7,6 @@ server {
index index.php index.html index.htm;
location /info {
autoindex on; # Directory listing for http://box/info/admin-console/
}
# NGINX's 1MB default is far too low for Calibre-Web and LMS-like apps.
# So IIAB sets this to 500M, roughly aligning with similar settings...
# 1. 'upload_max_filesize = 500M' and 'post_max_size = 500M' are SOMETIMES set in:

View file

@ -17,7 +17,7 @@ DESTPATH={{ doc_root }}/info # /library/www/html/info
DOCSPATH=$DESTPATH/docs # /library/www/html/info/docs
ADMINCONSOLEPATH=$DESTPATH/admin-console # /library/www/html/info/admin-console
# Note 1: sed (below) shortens URLs to 'admin-console'
# Note 2: Depends on "autoindex on;" in roles/nginx/templates/server.conf.j2
# Note 2: Depends on "fancyindex on;" in roles/nginx/templates/iiab.conf.j2
rm -rf $INPUT
rm -rf $OUTPUT
@ -36,10 +36,10 @@ rsync -av $OUTPUT/ $DESTPATH
if [ -d /opt/iiab/iiab-admin-console/docs ]; then
cp /opt/iiab/iiab-admin-console/docs/* $ADMINCONSOLEPATH
for f in `ls $ADMINCONSOLEPATH`; do
for f in `ls $ADMINCONSOLEPATH/*.md`; do
FTRIMMED=${f%.md}
pandoc -s $ADMINCONSOLEPATH/$f -o $ADMINCONSOLEPATH/$FTRIMMED.html
rm $ADMINCONSOLEPATH/$f
pandoc -s $f -o $FTRIMMED.html
rm $f
done
fi