Sonerezh / sonerezh

A self-hosted, web-based application to stream your music, everywhere.
https://www.sonerezh.bzh
GNU Affero General Public License v3.0
768 stars 122 forks source link

Album art not working after upgrade to Debian 9 #317

Closed gs11 closed 7 years ago

gs11 commented 7 years ago

Using nginx as the web server. All resized image requests result in a 404.

gs11 commented 7 years ago

Something changed in nginx between the version in debian jessie and the version in debian stretch. The docs at https://www.sonerezh.bzh/docs/en/appendix.html#nginx-server-block-example contains a faulty try_files statement for the images. Not sure why $args (query parameters) would be needed for the images but removing that part solved the issue. Technically changing index.php?$args; to index.php$is_args$args; (correct syntax) should work but nginx would never correctly try that file resulting in a 404.

gs11 commented 7 years ago

Amended commit in PR https://github.com/Sonerezh/docs/pull/10 to fix this too.