update: mainsail installation routine

This commit is contained in:
th33xitus
2020-08-15 17:11:11 +02:00
parent 9c20ad7d99
commit c91718cfc3
4 changed files with 102 additions and 80 deletions

View File

@@ -10,7 +10,9 @@ upstream apiserver {
}
upstream mjpgstreamer {
server 127.0.0.1:8080;
#edit your webcam port here
ip_hash;
server 127.0.0.1:8081;
}
server {
@@ -84,7 +86,7 @@ server {
proxy_set_header X-Scheme $scheme;
}
location /webcam {
location /webcam/ {
proxy_pass http://mjpgstreamer/;
}
}

9
resources/moonraker.conf Normal file
View File

@@ -0,0 +1,9 @@
[server]
host: 0.0.0.0
config_path: ~/klipper_config
[authorization]
enabled: true
trusted_clients:
127.0.0.1
192.168.1.0/24