top | item 44797984

(no title)

anditherobot | 6 months ago

Does this mean a developer doesn't have to install nginx or iis ?

discuss

order

qingcharles|6 months ago

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.

tucaz|6 months ago

This has been the case for years

andix|6 months ago

No modern dotnet web framework requires nginx or iis.

SideburnsOfDoom|6 months ago

Have you tried Kestrel, YARP and Aspire?

tracker1|6 months ago

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.

prodbro|6 months ago

> 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

|

...

p_ing|6 months ago

A web server should never be directly exposed to the Internet, provided you care about the web server host or what's behind it.