mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
api live websocket
This commit is contained in:
parent
982f96cd1e
commit
cee2108556
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue