api live websocket

This commit is contained in:
Your Name 2024-02-29 01:04:32 +03:00
parent 982f96cd1e
commit cee2108556
2 changed files with 13 additions and 1 deletions

View file

@ -38,7 +38,7 @@
exec-once = sh -c "sleep 1 && swww clear"
#exec-once = swww img Downloads/PC\ Wallpapers/gifpixel/rooftop.gif
#exec-once = mpvpaper '*' -o "video-scale-y=1.1 --gpu-context=wayland --vo=gpu --hwdec=vaapi-copy" videowork/bgloop.webm
exec = gtk-launch maestral
exec-once = gtk-launch maestral
exec-once = waybar
#exec-once = ags

View file

@ -71,6 +71,12 @@
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://123.123.123.123:3000;
'';
locations."/api/live/ws".extraConfig = ''
proxy_pass http://123.123.123.123:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
'';
};
services.nginx.virtualHosts."grafana_second" = {
forceSSL = false;
@ -80,6 +86,12 @@
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://123.123.123.123:3000;
'';
locations."/api/live/ws".extraConfig = ''
proxy_pass http://123.123.123.123:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
'';
};
system.stateVersion = "22.11";