[Unit] Description=MidgarDL Bot After=network.target [Service] WorkingDirectory=/root/midgar # We point to the dotnet runtime, then the path to your DLL ExecStart=/usr/bin/dotnet /root/midgar/MidgarDL.Api.dll Restart=always RestartSec=5 KillSignal=SIGINT SyslogIdentifier=midgar-dl Environment=ASPNETCORE_URLS=http://0.0.0.0:80 [Install] WantedBy=multi-user.target