As good a topic as any for my first forum post I’m running all Windows at work, but my homelab Enterprise license is running on Ubuntu 18.04. Has anyone tried running this with say nginx, or even as a service daemon under centOS or Debian?
Curious to see if i can make this more reliable rather than relying on tmux to start and detach my dashboard over ssh.
* Places an existing ASP.NET Core app behind a reverse proxy server.
* Sets up the reverse proxy server to forward requests to the Kestrel web server.
* Ensures the web app runs on startup as a daemon.
* Configures a process management tool to help restart the web app
Thanks, that’s exactly the scenario I had in mind. The nginx server block configuration looks very straight forward.
Essentially, you’d add a location block to your config like so
It would appear to me at least, that by default, nginx only trusts localhost as a trusted proxy, meaning you’d want to install nginx on the dashboard server itself. I’ll need to look into that, as my proxy is seperate, being used to proxy several services. I’ll update with results.
Some initial testing indicates nginx reverse-proxying for SSL support works out of the box. This won’t actually RUN the dashboard, but it’s a quick and easy way to get SSL setup with something like Let’s Encrypt.
in your nginx server block, just specify the following:
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /path/to/cert/fullchain.pem; # set permission 0600
ssl_certificate_key /path/to/cert/privkey.pem; # set permission 0600
location / {
proxy_pass http://127.0.0.1:<dashboard_running_port>;
}
}
alrighty, initial test throws this. I’ll keep looking around.
$ pwd
/var/www/html/net472
$ dotnet-sdk.dotnet /var/www/html/netstandard2.0/UniversalDashboard.Server.dll
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/var/www/html/netstandard2.0/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, add the /var/www/html/netstandard2.0/UniversalDashboard.Server.runtimeconfig.json file specifying the appropriate framework.