┃┗┫┗┳━┳┳┳┳━┳━┳┛┣━┳┳┫┗┫┗┳━┳┳┓
┃┏┫┃┃┻┫┃┃┃╋┃╋┃╋┃━┫┃┃┏┫┏┫┻┫┏┛
┗━┻┻┻━┻━━┻━┻━┻━┻━┻━┻━┻━┻━┻┛
Blog Home :: Videos :: All Posts :: Tags :: RSS :: IMG :: About :: Test :: Gift 4 You ::
Musicplace.vip News
So there's a temporary solution for musicplace in effect, it's an nginx autoindex, however using a custom nginx module called ngx-fancyindex (link to github). It's really damn cool cuz it inputs a header, footer, css file and can has a number of more options than nginx's native autoindex module. The way I have the list setup currently is so that only a few specific directories will resolve, and nginx itself is configured to read $arg
arguments (variable, of one query string argument) and if it's /?json
then it will output the index (sans fancyindex) as JSON format, and if it's /?xml
then XML format. Cool! I learned more advanced methods for nginx webserver! :D
What I'm planning on doing is using nginx again to parse using regex any locations of /MP3/*.mp3
(and /{WAV,FLAC}/*.{wav,flac}
similarly) and instead of using include mime.types;
in the location block it will rewrite the destination URL to a dynamic page which won't just show an audio tag, but the album art, metadata like artist, track, album, genre (if any), bpm (if any) and such, and that's how musicplace is going to be until I fully redo the flask application that it is normally. Also in the header part of the fancyindex options I was going to put a javascript search box that shortens the list by the characters typed in the search box, live. I had that at the VERY VERY FIRST EVER musiclist, one that was never seen on the web actually.
I think this is an AWESOME experimentation with nginx webserver, and good practice. A while ago I discovered I enjoy webservers, and HTTP
mechanics. I'm not sure just yet if this skill I'm gaining is going to have much of a noticeable impact on any opportunities of making money, however, it has actually been decided for some years now that this is a hobby of mine. I would need one hell of a compelling reason to alter that decision.. For example a clear and possible, fully understood path to making it as a freelancer. That sort of thing I've thought about, but haven't had any revelations yet. However if, by the way, you out there on the web there you, would like me to help you with anything linux, website, webapp, networking, graphic design related, feel free to email me chunk :x: packets.cc ✉️ 😸
Tags: musicplace, flask, webapp, nginx, webserver, linux, system-administration, freelance-work, news