1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/nginx/templates/iiab.conf.j2
2020-07-15 16:05:19 -04:00

40 lines
1,018 B
Django/Jinja

location / {
rewrite ^/$ $1{{ iiab_home_url }};
}
location /usb {
alias /library/www/html/local_content/;
fancyindex on; # autoindex on;
}
location /local_content/ {
fancyindex on; # autoindex on;
}
location /modules/ {
fancyindex on; # Enable fancy indexes.
fancyindex_exact_size off; # Output human-readable file sizes.
fancyindex_ignore index.htmlf rachel-index.php;
}
location /js-menu/ {
fancyindex on; # autoindex on;
location /js-menu/menu-files/js/ {
fancyindex off; # autoindex off;
}
location /js-menu/menu-files/services/ {
fancyindex off; # autoindex off;
}
}
location /software/ {
fancyindex on; # Enable fancy indexes.
fancyindex_exact_size off; # Output human-readable file sizes.
location ~* \.(apk)$ {
add_header Content-Type application/vnd.android.package-archive;
}
location ~* \.(zim)$ {
add_header Content-Type application/zip;
}
}