News for hackers. Stuff that matters.
Re:SimpleW – Web Server Library .NET Core by anditherobot on Tuesday August 05, 2025 @09:52AM (#44797984)
Does this mean a developer doesn't have to install nginx or iis ?
Re:SimpleW – Web Server Library .NET Core by qingcharles on Tuesday August 05, 2025 @11:58AM (#44799726)
ASP.NET Core comes with its own built-in web server named Kestrel, which is very highly optimized. On most projects, I use it totally bare-metal, though I figure most run it behind a reverse proxy like nginx or yarp.
Re:SimpleW – Web Server Library .NET Core by kcb on Tuesday August 05, 2025 @09:56AM (#44798021)
Re:SimpleW – Web Server Library .NET Core by tucaz on Tuesday August 05, 2025 @09:54AM (#44798007)
This has been the case for years
Re:SimpleW – Web Server Library .NET Core by andix on Tuesday August 05, 2025 @09:54AM (#44798005)
No modern dotnet web framework requires nginx or iis.
Re:SimpleW – Web Server Library .NET Core by prodbro on Tuesday August 05, 2025 @11:13AM (#44799072)
> Does this mean a developer doesn't have to install nginx or iis ?

author here.

You don't have to keep it behind a reverse proxy like nginx.

But you can, especially if you have multiple APIs and you want to keep thing separated for security reason.

Example :

nginx:443 (reverse proxy, domain name routing)

|

|-> website1:8081 - docker container with SimpleW

|-> website2:8082 - docker container with SimpleW

|

...

Re:SimpleW – Web Server Library .NET Core by p_ing on Tuesday August 05, 2025 @12:28PM (#44800187)
A web server should never be directly exposed to the Internet, provided you care about the web server host or what's behind it.
Re:SimpleW – Web Server Library .NET Core by ofrzeta on Tuesday August 05, 2025 @12:39PM (#44800393)
> A web server should never be directly exposed to the Internet

That's what web servers are made for, no? Like Apache, Nginx etc. I mean, you could certainly put HAProxy in front but you'd need a good reason to do this.

Re:SimpleW – Web Server Library .NET Core by CharlieDigital on Tuesday August 05, 2025 @04:10PM (#44803610)
This is not the case for the modern Internet.

More often than not, for any serious application backend, you probably want a web application firewall (WAF) in front of it and SSL termination upstream of the web server.

Re:SimpleW – Web Server Library .NET Core by SideburnsOfDoom on Wednesday August 06, 2025 @02:34AM (#44808453)
And also a reverse proxy / Load balancer in front of multiple Webserver instances.
Re:SimpleW – Web Server Library .NET Core by SideburnsOfDoom on Tuesday August 05, 2025 @09:56AM (#44798033)
Have you tried Kestrel, YARP and Aspire?
Re:SimpleW – Web Server Library .NET Core by tracker1 on Tuesday August 05, 2025 @12:59PM (#44800714)
I'm not familiar with YARP, but isn't Aspire still using Kestral? I think of Aspire as more of a code driven, flexible Docker-Compose alternative.
Re:SimpleW – Web Server Library .NET Core by SideburnsOfDoom on Tuesday August 05, 2025 @03:36PM (#44803168)
YARP is (Yet Another) Reverse Proxy, and Aspire is in a similar space to Testcontainers - i.e. orchestration of multiple executables for test (and other things). No it's not an alternative to Kestrel.

These are three different tools that do different things. The point is that these are better examples of the "modern MS ASP Infra" space than "nginx, iis".