fix(nginx): Use correct passing in production configs

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2654>
This commit is contained in:
Georg Krause 2023-11-29 09:31:08 +00:00
commit 9dbbe9e768
5 changed files with 16 additions and 28 deletions

View file

@ -77,28 +77,6 @@ server {
text/x-cross-domain-policy;
# end of compression settings
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;

View file

@ -105,7 +105,8 @@ server {
location ~ ^/@(vite-plugin-pwa|vite|id)/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-front;
alias ${FUNKWHALE_FRONTEND_PATH}/;
try_files $uri $uri/ /index.html;
}
location /@ {