Deploy ASP.NET website 
Website configuration 
Suppose you have an ASP.NET website that you want to run under the domain domain.com
- Go to application store, install the - ASP.NETapplication 
- Create a website with the following configuration  - Enter domain
- Select Proxy Port
- Enter the port your ASP.NET application runs on, for example 3000
 
- Install the source code for the website from git or upload it yourself 
- Update Database & Build & Publish - Open the terminal for the website  bash bash- dotnet ef database update dotnet build dotnet publish
- Create Service for website - Use the Service management feature to create a service - Create a service named - domain_com(you can put domain_com or whatever you want, but note that it is short, easy to remember, no special characters)- You can refer to the content of - domain_combelowini- [Unit] Description=ASP.NET - domain.com [Service] WorkingDirectory=/home/flashpanel/domain.com // [!code focus] ExecStart=/usr/bin/dotnet /home/flashpanel/domain.com/bin/Debug/netcoreapp8.0/publish/domain_com.dll --urls "http://127.0.0.1:3000" // [!code focus ] Restart=always RestartSec=10 KillSignal=SIGINT SyslogIdentifier=domain_com // [!code focus] User=flashpanel // [!code focus] Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.target- WARNING - Change 3000to the proxy port you declared when creating the website before
- Please change domain.comto the domain name corresponding to your website
- flashpanelis the user that the website is running on, please replace- flashpanelwith the user that the website is running on (be careful not to set it as- root)
- bin/Debug/netcoreapp8.0/publish/domain_com.dllis the path to the dll file that- dotnet publishcreates
- Linux has a case-sensitive file system. Setting ASPNETCORE_ENVIRONMENTtoProductionwill result in searching for the configuration fileappsettings.Production.json, notappssettings.production.json.
- The colon separator (😃 is not supported in environment variable names. Use double underscores (__) instead of colons. The system will convert double underscores to colons when environment variables are read into the configuration. In the following example, the connection string key ConnectionStrings:DefaultConnectionis placed in the service definition file asConnectionStrings__DefaultConnectioniniEnvironment=ConnectionStrings__DefaultConnection={Connection String}
 
- Change 
Visit the website to see the successful results!