We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some software prefer html listing (eg: kodi), it should be possible to ask for html listing with an url param
Failed try with nginx conf
server { listen 80; root /home/user/downloads; #location for json requests location ^~ /files/ { #PathOnYourHardDrive Last slash is important alias /home/user/downloads/; # Random id so nginx doesn't serve random html files index aaaaaaaaaaaaaaaaaa; autoindex on; set $index_format "json"; if ( $arg_html = "1" ) { set $index_format "html"; } autoindex_format $index_format; autoindex_exact_size on; sendfile on; sendfile_max_chunk 2m; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; # error_page 418 = @htmllisting; # if ( $arg_html = "1" ) { return 418; } } # location @htmllisting { # alias /; # autoindex on; # autoindex_format html; # autoindex_exact_size on; # # sendfile on; # sendfile_max_chunk 2m; # tcp_nopush on; # tcp_nodelay on; # keepalive_timeout 65; # } location / { root /var/www/files/; # Try files so nginx serves the root index for all paths try_files $uri $uri/ /index.html; sendfile on; sendfile_max_chunk 2m; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; } }
The text was updated successfully, but these errors were encountered:
Js code could support both
Sorry, something went wrong.
No branches or pull requests
Some software prefer html listing (eg: kodi), it should be possible to ask for html listing with an url param
Failed try with nginx conf
The text was updated successfully, but these errors were encountered: