nginx media player
because the dependency ngx-fancyindex
is dangerously unmtaintained:
- works
- volume slider #wow #whoa
- opus and vorbis support on iOS (iPhone/iPad)
- super fancy album art view
- visualizer? maybe
"<>&
in filenames is a bad idea, see aperezdc/ngx-fancyindex#104
run one of these depending on distro:
- alpine:
apk add nginx-mod-http-fancyindex
- centos:
yum install nginx-module-fancyindex
- debian:
apt install libnginx-mod-http-fancyindex
- gentoo: maybe you have more luck
add this near the top, before the includes (if any):
load_module modules/ngx_http_fancyindex_module.so;
add this anywhere inside server {
and optionally
replace /music
with /
to enable globally:
location /music {
autoindex off;
fancyindex on;
fancyindex_name_length 9001;
fancyindex_header /.nfi-audio/1.html;
fancyindex_footer /.nfi-audio/2.html;
}
git clone https://github.com/9001/nfi-audio .nfi-audio
special thanks to apple for refusing to support open standards which just happens to have higher compression efficiencies than the proprietary patent-encumbered audio codecs haha
cd /var/www/your-website/.nfi-audio && ./deps.sh