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

41 lines
1,018 B
Text
Raw Normal View History

2019-12-17 15:25:22 +00:00
location / {
rewrite ^/$ $1{{ iiab_home_url }};
2019-12-17 15:25:22 +00:00
}
location /usb {
2019-12-17 15:25:22 +00:00
alias /library/www/html/local_content/;
fancyindex on; # autoindex on;
}
location /local_content/ {
fancyindex on; # autoindex on;
}
2019-12-09 17:10:02 +00:00
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;
}
}
2020-07-15 20:05:19 +00:00
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;
}
}