2
0
Эх сурвалжийг харах

Metrics endpoint now respects baseurl

sparky8251 5 жил өмнө
parent
commit
997b71bbef

+ 1 - 1
Jellyfin.Server/Startup.cs

@@ -80,7 +80,7 @@ namespace Jellyfin.Server
                 endpoints.MapControllers();
                 endpoints.MapControllers();
                 if (_serverConfigurationManager.Configuration.EnableMetrics)
                 if (_serverConfigurationManager.Configuration.EnableMetrics)
                 {
                 {
-                    endpoints.MapMetrics();
+                    endpoints.MapMetrics(_serverConfigurationManager.Configuration.BaseUrl.TrimStart('/') + "/metrics");
                 }
                 }
             });
             });