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>
environments/review-docs-fix-p-l408cl/deployments/18885
Georg Krause 2023-11-25 15:25:21 +00:00 zatwierdzone przez Marge
rodzic 69876867d5
commit 0c2f9c8dbb
6 zmienionych plików z 101 dodań i 3 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fix missing og meta tags (#2208)

Wyświetl plik

@ -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;

Wyświetl plik

@ -93,6 +93,26 @@ server {
proxy_pass http://funkwhale-api;
}
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;

Wyświetl plik

@ -20,7 +20,6 @@ server {
server_name _;
# General configs
root /usr/share/nginx/html;
client_max_body_size ${NGINX_MAX_BODY_SIZE};
@ -65,6 +64,26 @@ server {
proxy_pass http://funkwhale-api;
}
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;

Wyświetl plik

@ -16,7 +16,6 @@ server {
server_name _;
# General configs
root /usr/share/nginx/html;
client_max_body_size ${NGINX_MAX_BODY_SIZE};
@ -61,6 +60,26 @@ server {
proxy_pass http://funkwhale-api;
}
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;

Wyświetl plik

@ -75,7 +75,6 @@ server {
listen [::]:80;
server_name _;
{% endif %}
# General configs
@ -132,6 +131,26 @@ server {
}
{% endif %}
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;