fix(nginx): fix websocket issue in template

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2648>
environments/review-docs-fix-p-l408cl/deployments/18885
Ciarán Ainsworth 2023-11-26 19:33:13 +01:00 zatwierdzone przez Marge
rodzic b74a873b4a
commit 76362b020e
6 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fixed an issue with the nginx templates that caused issues when connecting to websockets.

Wyświetl plik

@ -81,6 +81,7 @@ server {
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://fw;
}

Wyświetl plik

@ -95,6 +95,7 @@ server {
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
alias ${FUNKWHALE_FRONTEND_PATH}/;
try_files $uri $uri/ /index.html;
}

Wyświetl plik

@ -67,6 +67,7 @@ server {
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
proxy_pass http://funkwhale-front;
}

Wyświetl plik

@ -63,6 +63,7 @@ server {
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
}

Wyświetl plik

@ -75,7 +75,7 @@ server {
listen [::]:80;
server_name _;
PI_IP}:${FUNKWHALE_API_PORT};
{% endif %}
# General configs
@ -134,6 +134,7 @@ PI_IP}:${FUNKWHALE_API_PORT};
location / {
expires 1d;
include /etc/nginx/funkwhale_proxy.conf;
{% if config.proxy_frontend and not config.reverse_proxy %}
proxy_pass http://funkwhale-front;
{% elif not config.proxy_frontend and config.reverse_proxy %}