From b042df59cc04fadc4d2233eca8430f3aa3725935 Mon Sep 17 00:00:00 2001 From: massyas Date: Tue, 10 Aug 2021 11:19:14 +0200 Subject: [PATCH] Fix last DSub releases not able to connect with LDAP DSub v. 5.5.2 has been recently pushed to F-Droid instead of v 5.0.3 with a lot of change but it's now not able to connect to Airsonic server when LDAP is used as set here in yunohost package. See https://github.com/airsonic/airsonic/issues/260 for details. The changes use sub_filter directive to make the server think it's madsonic and use old auth method. SSOWAT user panel has been disable since it contains also a sub_filter_once directive --- conf/nginx.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b846dca..b2901aa 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,7 +17,14 @@ location __PATH__/ { # See https://github.com/YunoHost-Apps/airsonic_ynh/issues/4 client_max_body_size 500M; + # Fix last DSub releases not able to connect with LDAP + # See https://github.com/airsonic/airsonic/issues/260 + sub_filter_types text/xml application/json; + sub_filter_once off; + sub_filter 'subsonic' 'madsonic'; + # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + # Removed since sub_filter_once directive is also used in this file +# include conf.d/yunohost_panel.conf.inc; # proxy_set_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' www.gstatic.com; img-src 'self' *.akamaized.net; style-src 'self' 'unsafe-inline' fonts.googleapis.com; font-src 'self' fonts.gstatic.com; frame-src 'self'; object-src 'none'"; -} \ No newline at end of file +}