mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
'fancyindex on;' in nginx/templates/iiab.conf.j2 instead + box/info resiliency
This commit is contained in:
parent
1b2930c52d
commit
0ac162fdc6
3 changed files with 8 additions and 8 deletions
|
@ -11,6 +11,10 @@ location /local_content/ {
|
||||||
fancyindex on; # autoindex on;
|
fancyindex on; # autoindex on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /info {
|
||||||
|
fancyindex on; # Directory listing for http://box/info/admin-console/
|
||||||
|
}
|
||||||
|
|
||||||
location /modules/ {
|
location /modules/ {
|
||||||
fancyindex on; # Enable fancy indexes.
|
fancyindex on; # Enable fancy indexes.
|
||||||
fancyindex_exact_size off; # Output human-readable file sizes.
|
fancyindex_exact_size off; # Output human-readable file sizes.
|
||||||
|
|
|
@ -7,10 +7,6 @@ server {
|
||||||
|
|
||||||
index index.php index.html index.htm;
|
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.
|
# 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...
|
# 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:
|
# 1. 'upload_max_filesize = 500M' and 'post_max_size = 500M' are SOMETIMES set in:
|
||||||
|
|
|
@ -17,7 +17,7 @@ DESTPATH={{ doc_root }}/info # /library/www/html/info
|
||||||
DOCSPATH=$DESTPATH/docs # /library/www/html/info/docs
|
DOCSPATH=$DESTPATH/docs # /library/www/html/info/docs
|
||||||
ADMINCONSOLEPATH=$DESTPATH/admin-console # /library/www/html/info/admin-console
|
ADMINCONSOLEPATH=$DESTPATH/admin-console # /library/www/html/info/admin-console
|
||||||
# Note 1: sed (below) shortens URLs to '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 $INPUT
|
||||||
rm -rf $OUTPUT
|
rm -rf $OUTPUT
|
||||||
|
@ -36,10 +36,10 @@ rsync -av $OUTPUT/ $DESTPATH
|
||||||
|
|
||||||
if [ -d /opt/iiab/iiab-admin-console/docs ]; then
|
if [ -d /opt/iiab/iiab-admin-console/docs ]; then
|
||||||
cp /opt/iiab/iiab-admin-console/docs/* $ADMINCONSOLEPATH
|
cp /opt/iiab/iiab-admin-console/docs/* $ADMINCONSOLEPATH
|
||||||
for f in `ls $ADMINCONSOLEPATH`; do
|
for f in `ls $ADMINCONSOLEPATH/*.md`; do
|
||||||
FTRIMMED=${f%.md}
|
FTRIMMED=${f%.md}
|
||||||
pandoc -s $ADMINCONSOLEPATH/$f -o $ADMINCONSOLEPATH/$FTRIMMED.html
|
pandoc -s $f -o $FTRIMMED.html
|
||||||
rm $ADMINCONSOLEPATH/$f
|
rm $f
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue