FlowCore 2.0 built with .NET 6.0/ASP.NET Core 6.0.
FlowCore includes a .NET cross-platform Kestrel web server, which can be used alone or with a reverse proxy server.
The FlowCore application <runroot> folder contains the ASP.NET Core directory structure.
FlowCore is launched on Linux from the <runroot/FlowCore.dll> file.
Depending on the Linux distribution you are using, please refer to the official Microsoft documentation to execute the installation command.
Install the .NET SDK or .NET runtime on Ubuntu
(1) Configure the Kestrel Web Server
1.1 Configure Kestrel binding native ports.
Open <runroot/appsettings.json> you can see that Kestrel binds the local address and port <localhost:5000> by default.
localhost equals 127.0.0.1 and uses Kestrel to bind native addresses and ports, which can be used with reverse proxies (Nginx, Apache).
You can customize the port that Kestrel binds (recommended port range 5000-60000) as long as the port is not occupied.
1.2 Start the Kestrel web server in the Linux commands line.
Linux commands
sudo dotnet /FlowCoreApproot/runroot/FlowCore.dll
1.3 Verify that Kestrel is working properly.
Linux commands
curl http://localhost:5000
(2) Configure Kestrel to provide services independently.
This section demonstrates how to configure a Kestrel bound domain name and SSL certificate to provide services independently.
After verifying that the <HTTPS > access is successful, enable <HttpsRedirection> jump.
2.1 Configuring the Kestrel Web Server using <vim > edit <runroot/appsettings.json>.
Linux commands
sudo vim /FlowCoreApproot/runroot/appsettings.json
< how Kestrel-URL > bind
http://localhost:5000 (http listening native NIC loopback address: port 5000, can only be accessed locally)
http://*:5000 (http listens on all IP addresses: 5000 port)
http://office.paicore.com (http listens on all IP addresses of the machine: port 80)
https://office.paicore.com (https listens on all IP addresses of the machine: port 443)
<appsettings.json>The configuration is as follows: