#Crowsnest: reachable trough browser but not working in mainsail

29 messages · Page 1 of 1 (latest)

stable sphinx
#

Hey!

As the title already says im trying to use a Logitech C270 with Mainsail trough crowsnest. I can reach it using this url 192.168.178.191:1335/webcam/?action=stream which is my local ip, combined with the port im running mainsail on and the camera works like expected ( see picture ). Problem is that if I enter the same stuff like above into the Mainsail webcam settings it just displays a blank white-ish image ( see picture ). I already tried restarting the crowsnest, klipper and Mainsail but that does not change anything. Yesterday when I got the camera everything was just a matter of plugging it in and editing the config. Below ill attach some logs and configs

cobalt heath
#

Please explain why you use port 1335?

stable sphinx
#

I have lots of stuff running on that machine so all those ports like 8080, 443, 80 are already occupied

cobalt heath
#

Then you need a special setup because Ports 8080-8083 are covered by mainsails nginx configuration.

#

/webcam/ is a nginx reverse proxy url

stable sphinx
#

But why did it work yesterday? I just unplugged the cam and replugged it today and not everything is broken

cobalt heath
#

Its easy, if you have another application running on prt 8080 and ustreamer trys to start with your configured port 8080 it will not start

stable sphinx
#

tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 44869/ustreamer right, Ive actually found ustreamer running on port 8080

cobalt heath
#

It is listening on localhost port 8080, now you have to ensure nothing else is running on port 8080, so that nginx can react as reverse proxy

stable sphinx
#

Thanks, ill try to move the service running on port 8080 to something else

#

I have all those running behind a reverse proxy so it does not actually matter on which port they are

cobalt heath
#

If you have already a reverse proxy configure it to proxy localhost:8080 for ustreamer and remove /webcam/ from url

#

Like 192.168.x.x:8080/?action=stream in mainsail

stable sphinx
#

Also:
Whats the best way to unplug my printer from Klipper? I have the "server" running 24/7 and I only start my printer when I actually want to print something so ill just pull out the USB cable and Ignore the errors Mainsail is giving me.

stable sphinx
cobalt heath
stable sphinx
#

So just unplugging it and then restarting the services when I need the printer is the best way?

cobalt heath
#

But tbh, mixing an IoT service like klipper with eventually security related services like selfhosted Pages VPN or smthng similar isnt a good choice. I would strictly seperat them.

cobalt heath
stable sphinx
#

Okay, thanks

cobalt heath
stable sphinx
# cobalt heath Then I might misunderstood you...

So basically:

Nginx Proxy manager requests wildcard SSL certs from cloudflare and if I for example go to: cloud.example.com I can access my Nextcloud instance but I dont want the klipper services open to the internet to I did not add them to Nginx Proxy Manager

cobalt heath
stable sphinx
#

Ayy Its working!

#

Thanks!

cobalt heath