2019-12-17 15:25:22 +00:00
|
|
|
location / {
|
2019-12-20 14:33:26 +00:00
|
|
|
rewrite ^/$ $1{{ iiab_home_url }};
|
2019-12-17 15:25:22 +00:00
|
|
|
}
|
|
|
|
|
2019-12-17 15:13:58 +00:00
|
|
|
location /usb {
|
2019-12-17 15:25:22 +00:00
|
|
|
alias /library/www/html/local_content/;
|
2020-03-30 15:37:20 +00:00
|
|
|
fancyindex on; # autoindex on;
|
2025-01-23 05:19:25 +00:00
|
|
|
add_before_body /usb/upload/button.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/usb/upload/(.*)\.php$ {
|
|
|
|
alias /library/www/html/local_content/upload/$1.php;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
fastcgi_pass php;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
include fastcgi_params;
|
2019-12-17 15:13:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /local_content/ {
|
2020-03-30 15:37:20 +00:00
|
|
|
fancyindex on; # autoindex on;
|
2025-01-22 09:22:38 +00:00
|
|
|
add_before_body /usb/upload/button.html;
|
2019-12-17 15:13:58 +00:00
|
|
|
}
|
2019-12-09 17:10:02 +00:00
|
|
|
|
2023-01-11 00:42:19 +00:00
|
|
|
location /info {
|
|
|
|
fancyindex on; # Directory listing for http://box/info/admin-console/
|
2023-01-11 00:57:43 +00:00
|
|
|
fancyindex_exact_size off; # Output human-readable file sizes.
|
2023-01-11 00:42:19 +00:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2020-04-22 18:55:40 +00:00
|
|
|
|
|
|
|
location /js-menu/ {
|
|
|
|
fancyindex on; # autoindex on;
|
2020-04-26 19:45:42 +00:00
|
|
|
location /js-menu/menu-files/js/ {
|
|
|
|
fancyindex off; # autoindex off;
|
|
|
|
}
|
|
|
|
location /js-menu/menu-files/services/ {
|
|
|
|
fancyindex off; # autoindex off;
|
|
|
|
}
|
2020-04-22 18:55:40 +00:00
|
|
|
}
|
2020-07-15 20:05:19 +00:00
|
|
|
|
|
|
|
location /software/ {
|
|
|
|
fancyindex on; # Enable fancy indexes.
|
|
|
|
fancyindex_exact_size off; # Output human-readable file sizes.
|
2021-07-12 19:52:15 +00:00
|
|
|
location ~* \.(apk)$ {
|
2020-07-15 20:05:19 +00:00
|
|
|
add_header Content-Type application/vnd.android.package-archive;
|
2021-07-12 19:52:15 +00:00
|
|
|
}
|
2020-07-15 20:05:19 +00:00
|
|
|
|
2021-07-12 19:52:15 +00:00
|
|
|
location ~* \.(zim)$ {
|
2020-07-15 20:05:19 +00:00
|
|
|
add_header Content-Type application/zip;
|
2021-07-12 19:52:15 +00:00
|
|
|
}
|
2020-07-15 20:05:19 +00:00
|
|
|
}
|