1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owntracks_ynh.git synced 2024-09-03 19:56:24 +02:00

Attempt to fix websockets

This commit is contained in:
tituspijean 2024-06-03 23:49:11 +02:00
parent e91eb7f546
commit 08299da2d8
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -12,8 +12,8 @@ location __PATH__/ {
# Proxy and upgrade WebSocket connection
location __PATH__/recorder/ws {
rewrite ^__PATH__/recorder/(.*) /$1 break;
proxy_pass http://127.0.0.1:__PORT__;
#rewrite ^__PATH__/recorder/(.*) /$1 break;
proxy_pass http://127.0.0.1:__PORT__/ws/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";