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:
parent
69876867d5
commit
0c2f9c8dbb
|
@ -0,0 +1 @@
|
||||||
|
Fix missing og meta tags (#2208)
|
|
@ -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 / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
|
|
@ -93,6 +93,26 @@ server {
|
||||||
proxy_pass http://funkwhale-api;
|
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 / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
|
|
@ -20,7 +20,6 @@ server {
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
|
||||||
# General configs
|
# General configs
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
||||||
|
@ -65,6 +64,26 @@ server {
|
||||||
proxy_pass http://funkwhale-api;
|
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 / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
|
|
@ -16,7 +16,6 @@ server {
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
|
||||||
# General configs
|
# General configs
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
||||||
|
@ -61,6 +60,26 @@ server {
|
||||||
proxy_pass http://funkwhale-api;
|
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 / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
|
|
@ -75,7 +75,6 @@ server {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# General configs
|
# General configs
|
||||||
|
@ -132,6 +131,26 @@ server {
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% 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 / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
|
|
Loading…
Reference in New Issue