Dev setup for working with subsonic API
This commit is contained in:
parent
67dc414c8a
commit
632aca5153
|
@ -82,5 +82,9 @@ http {
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
proxy_pass http://api:12081/;
|
proxy_pass http://api:12081/;
|
||||||
}
|
}
|
||||||
|
location /rest/ {
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
proxy_pass http://api:12081/api/subsonic/rest/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ module.exports = {
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
filter: function (pathname, req) {
|
filter: function (pathname, req) {
|
||||||
let proxified = ['.well-known', 'staticfiles', 'media', 'federation', 'api']
|
let proxified = ['rest', '.well-known', 'staticfiles', 'media', 'federation', 'api']
|
||||||
let matches = proxified.filter(e => {
|
let matches = proxified.filter(e => {
|
||||||
return pathname.match(`^/${e}`)
|
return pathname.match(`^/${e}`)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue