fix(nginx): fix websocket issue in template
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2648>
This commit is contained in:
parent
b74a873b4a
commit
76362b020e
|
@ -0,0 +1 @@
|
||||||
|
Fixed an issue with the nginx templates that caused issues when connecting to websockets.
|
|
@ -81,6 +81,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
proxy_pass http://fw;
|
proxy_pass http://fw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
alias ${FUNKWHALE_FRONTEND_PATH}/;
|
alias ${FUNKWHALE_FRONTEND_PATH}/;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
proxy_pass http://funkwhale-front;
|
proxy_pass http://funkwhale-front;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
alias /usr/share/nginx/html/;
|
alias /usr/share/nginx/html/;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ server {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
PI_IP}:${FUNKWHALE_API_PORT};
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# General configs
|
# General configs
|
||||||
|
@ -134,6 +134,7 @@ PI_IP}:${FUNKWHALE_API_PORT};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
{% if config.proxy_frontend and not config.reverse_proxy %}
|
{% if config.proxy_frontend and not config.reverse_proxy %}
|
||||||
proxy_pass http://funkwhale-front;
|
proxy_pass http://funkwhale-front;
|
||||||
{% elif not config.proxy_frontend and config.reverse_proxy %}
|
{% elif not config.proxy_frontend and config.reverse_proxy %}
|
||||||
|
|
Loading…
Reference in New Issue