fix(nginx): Remove trailing slash from reverse proxy configuration

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2253>
environments/review-docs-fix-b-0p3p4g/deployments/16232
Georg Krause 2022-12-06 15:29:09 +01:00 zatwierdzone przez Georg Krause
rodzic 8d818e5fac
commit b55c2549bd
5 zmienionych plików z 13 dodań i 12 usunięć

Wyświetl plik

@ -0,0 +1 @@
Remove trailing slash from reverse proxy configuration

Wyświetl plik

@ -65,6 +65,6 @@ server {
location / {
include /etc/nginx/funkwhale_proxy.conf;
client_max_body_size ${NGINX_MAX_BODY_SIZE};
proxy_pass http://fw/;
proxy_pass http://fw;
}
}

Wyświetl plik

@ -87,7 +87,7 @@ server {
include /etc/nginx/funkwhale_proxy.conf;
# This is needed if you have file import via upload enabled.
client_max_body_size ${NGINX_MAX_BODY_SIZE};
proxy_pass http://funkwhale-api/;
proxy_pass http://funkwhale-api;
}
location / {
@ -106,7 +106,7 @@ server {
location /federation/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/federation/;
proxy_pass http://funkwhale-api;
}
# You can comment this if you do not plan to use the Subsonic API.
@ -117,7 +117,7 @@ server {
location /.well-known/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/.well-known/;
proxy_pass http://funkwhale-api;
}
location /media/ {

Wyświetl plik

@ -80,11 +80,11 @@ http {
include /etc/nginx/funkwhale_proxy.conf;
# This is needed if you have file import via upload enabled.
client_max_body_size ${NGINX_MAX_BODY_SIZE};
proxy_pass http://funkwhale-api/api/;
proxy_pass http://funkwhale-api;
}
location / {
proxy_pass http://funkwhale-front/;
proxy_pass http://funkwhale-front;
expires 1d;
}
@ -92,13 +92,13 @@ http {
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";
proxy_pass http://funkwhale-front/embed.html;
proxy_pass http://funkwhale-front;
expires 1d;
}
location /federation/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/federation/;
proxy_pass http://funkwhale-api;
}
# You can comment this if you do not plan to use the Subsonic API.
@ -109,7 +109,7 @@ http {
location /.well-known/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/.well-known/;
proxy_pass http://funkwhale-api;
}
location /media/ {

Wyświetl plik

@ -52,7 +52,7 @@ server {
include /etc/nginx/funkwhale_proxy.conf;
# This is needed if you have file import via upload enabled.
client_max_body_size ${NGINX_MAX_BODY_SIZE};
proxy_pass http://funkwhale-api/;
proxy_pass http://funkwhale-api;
}
location / {
@ -71,7 +71,7 @@ server {
location /federation/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/federation/;
proxy_pass http://funkwhale-api;
}
# You can comment this if you do not plan to use the Subsonic API.
@ -82,7 +82,7 @@ server {
location /.well-known/ {
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-api/.well-known/;
proxy_pass http://funkwhale-api;
}
location /media/ {