klipper: ensure to proxy_pass as subdirectories of fluidd

This commit is contained in:
makefu 2024-01-19 00:08:04 +01:00
parent e39bdff2a4
commit 6d1a5bdd3b
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 3 additions and 2 deletions
2configs/home/3dprint

View file

@ -19,7 +19,8 @@
services.fluidd.enable = true;
services.fluidd.hostName = "fluidd.lan";
services.fluidd.nginx.locations."/webcam".proxyPass = "http://127.0.0.1:8080/stream";
services.fluidd.nginx.locations."/webcam_stream".proxyPass = "http://127.0.0.1:5050/?action=stream";
services.fluidd.nginx.locations."/webcam_snapshot".proxyPass = "http://127.0.0.1:5050/?action=snapshot";
services.nginx.clientMaxBodySize = "1000m";
services.klipper = {

View file

@ -9,7 +9,7 @@ in
#inputPlugin = "input_uvc.so -d ${dev} -r 1280x960";
inputPlugin = "input_uvc.so -y -d ${dev} -r 640x480 -f 5"; # ps eyecam
# outputPlugin = "output_http.so -w @www@ -n -p 18088";
# outputPlugin = "output_http.so -w @www@ -n -p 5050";
};
services.udev.extraRules = ''