fix(nginx): Make sure pages that require OG tags are served by the backend

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2623>
This commit is contained in:
Georg Krause 2023-11-25 15:25:21 +00:00 committed by Marge
commit 0c2f9c8dbb
6 changed files with 101 additions and 3 deletions

View file

@ -79,6 +79,26 @@ server {
location ~ ^/library/(albums|tracks|artists|playlists)/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api;
}
location /channels/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api;
}
location ~ ^/@(vite-plugin-pwa|vite|id)/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-front;
}
location /@ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api;
}
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;