hareesh1982 Hello,
yes, you can edit the Nginx configuration file for that domain and proxy to port 5000.
OpenPanel uses PM2 for managing NodeJS and Python applications, but it can also be used for dotnet, I suggest using that instead of systemd.
Because systemd is not available inside docker, you can either setup the app on the server and use OpenAdmin > Users > that user > Websites > Edit Vhosts File to proxy the domain to the system service running on port 5000 - but I don't recommend this as that service will NOT be counted in that user resource usage and can use all the available memory/cpu.
Better option is to:
- Create a user account that has a plan with Nginx webserver *(apache or Nginx are available)
- Login as root to that user container
opencli user-login USERNAME
- Install dotnet runtime and deploy the application to run on port 5000 with pm2
- Add the domain that will use the proxy on OpenPanel > Domains
- On the same page click on "Edit Vhosts" for that domain
- Add the proxy to port 5000 and save.
This way, the app itself is limited by the user disk, cpu and memory limits. Also PM2 will auto-restart it same way as the systemd does.
PS. If you will have more than 1 user/sites that will be using dotnet, I suggesting creating a docker image with dotnet and then that image can be used for new accounts, so that they have net installed and maybe even add your app pre-installed.
Feel free to message me for assistance on setting the app or building the image. 👍