kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Merge branch '249-subsonic-nginx' into 'develop'
Resolve "Add missing configuration block in nginx conf for subsonic" Closes #249 See merge request funkwhale/funkwhale!215merge-requests/237/head
commit
92dbf52b3c
changes/changelog.d
deploy
|
@ -0,0 +1,26 @@
|
|||
Added missing subsonic configuration block in deployment vhost files (#249)
|
||||
|
||||
Missing subsonic configuration bloc in vhost files
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Because of a missing bloc in the sample Nginx and Apache configurations,
|
||||
instances that were deployed after the 0.13 release are likely to be unable
|
||||
to answer to Subsonic clients (the missing bits were properly documented
|
||||
in the changelog).
|
||||
|
||||
Ensure you have the following snippets in your Nginx or Apache configuration
|
||||
if you plan to use the Subsonic API.
|
||||
|
||||
Nginx::
|
||||
|
||||
location /rest/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api/api/subsonic/rest/;
|
||||
}
|
||||
|
||||
Apache2::
|
||||
|
||||
<Location "/rest">
|
||||
ProxyPass ${funkwhale-api}/api/subsonic/rest
|
||||
ProxyPassReverse ${funkwhale-api}/api/subsonic/rest
|
||||
</Location>
|
|
@ -84,6 +84,12 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
|
|||
ProxyPassReverse ${funkwhale-api}/federation
|
||||
</Location>
|
||||
|
||||
# You can comment this if you don't plan to use the Subsonic API
|
||||
<Location "/rest">
|
||||
ProxyPass ${funkwhale-api}/api/subsonic/rest
|
||||
ProxyPassReverse ${funkwhale-api}/api/subsonic/rest
|
||||
</Location>
|
||||
|
||||
<Location "/.well-known/">
|
||||
ProxyPass ${funkwhale-api}/.well-known/
|
||||
ProxyPassReverse ${funkwhale-api}/.well-known/
|
||||
|
|
|
@ -67,6 +67,12 @@ server {
|
|||
proxy_pass http://funkwhale-api/federation/;
|
||||
}
|
||||
|
||||
# You can comment this if you do not plan to use the Subsonic API
|
||||
location /rest/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api/api/subsonic/rest/;
|
||||
}
|
||||
|
||||
location /.well-known/ {
|
||||
include /etc/nginx/funkwhale_proxy.conf;
|
||||
proxy_pass http://funkwhale-api/.well-known/;
|
||||
|
|
Ładowanie…
Reference in New Issue