/hangfire/stats return Status Code: 500 Internal Server Error when using nginx proxy
Author: kaifeongCreated Oct 27, 2020Updated Aug 15, 2026
Labelst: question
Hi, I'm using nginx as my proxy and I able to load the hangfire dashboard page but I got error 500 on the /hangfire/stats . Not sure what else am I missing. Any advise? Many thanks.
Hangfire v1.7.11 .NET Core 3.1.5
Startup.cs
app.UseHangfireDashboard("/hangfire", new DashboardOptions
{
Authorization = new[] { new HangFireAuthFilter() }
});Nginx
upstream my_hangfire {
server 192.168.99.200:20000;
}
server {
location /hangfire {
proxy_pass http://my_hangfire;
}
}Source: HangfireIO/Hangfire