diff --git a/conf/nginx.conf b/conf/nginx.conf index 1e34e7b..0c9dca4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,8 +22,13 @@ location PATHTOCHANGE { return 403; } + location ^~ /config/ { + deny all; + return 403; + } + rewrite ^PATHTOCHANGE/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ PATHTOCHANGE/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last; - rewrite ^PATHTOCHANGE/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ PATHTOCHANGE/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last; + rewrite ^PATHTOCHANGE/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ PATHTOCHANGE/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last; #enable subsonic api if ( !-d $request_filename ) { @@ -35,7 +40,7 @@ location PATHTOCHANGE { deny all; } } - + # Include SSOWAT user panel. # include conf.d/yunohost_panel.conf.inc;