[Unit] Description=Alumnihub Webservice [Service] WorkingDirectory=/opt/oqtane ExecStart=/usr/bin/dotnet /opt/oqtane/Oqtane.Server.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=5 KillSignal=SIGINT SyslogIdentifier=alumnihub User=oqtane Environment=ASPNETCORE_ENVIRONMENT=Production Environment=ASPNETCORE_URLS="http://127.0.0.1:5000" Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true Environment=ASPNETCORE_FORWARDEDHEADERS_PROXIES=127.0.0.1 Environment=DOTNET_NOLOGO=true [Install] WantedBy=multi-user.target