Browse Source

Metrics endpoint now respects baseurl

sparky8251 5 năm trước cách đây
mục cha
commit
997b71bbef
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Jellyfin.Server/Startup.cs

+ 1 - 1
Jellyfin.Server/Startup.cs

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