在Raspberry Pi上托管.NET Web API - 第1部分
Introduction The cross-platform nature of ASP.NET core makes it possible to host the application on Linux. ASP.NET core also consists of an embedded web server and runtime that runs the...
ASP.NET Core可以在Linux上托管,使用Kestrel嵌入式服务器,但需要配置反向代理以保护应用。Nginx和Apache是Raspberry Pi的主要托管选项。配置Nginx作为反向代理需要修改配置文件,将请求转发到.NET Web API,并重启Nginx以应用更改。
