Hello Jonathan,

changed the Subject to make it clearer that this is a different topic.

Jonathan Aquilina via cockpit-devel [2025-03-11 13:46 +0000]:
> Probably a stupid question here but what advantage does having its own custom 
> created web server offer over something like nginx with reverse proxy, 
> apache, or even something super lightweight such as lighttpd or even caddy?

Because none of these can do what cockpit-ws does: authentication, PAM session
setup, connecting to cockpit-bridge, exposing and driving the websocket,
speaking the JSON wire protocol, etc. But you are right for the portion of
being a generic web server to serve the *.html/*.css/*.js files) - this should
go away (many thousand lines of C code) and be replaced with a standard
Python/Rust/etc. libary, so that we only implement the cockpit specific bits.
That's what triggered all this discussion and researching for a better design
of the web server to minimize it in the future.

> In my case in regards to the use of cockpit. I love that i can run it locally 
> on my own linux laptop and manage any of my linux servers with it and in a 
> secure manner as well.

So for you that's a http://localhost:9090 case then? (no TLS/https). That will
be fine.

> Having a proper LE certificate will be amazing to have it out of the box on 
> install.

Sure, but that's not going to happen. Setting up certificates is hard, and
absolutely not automatable. There's a reason why it has taken decades to even
get to where we are now, and it's still far from done. 😅

Thanks,

Pitti

-- 
_______________________________________________
cockpit-devel mailing list -- cockpit-devel@lists.fedorahosted.org
To unsubscribe send an email to cockpit-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/cockpit-devel@lists.fedorahosted.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to