Przeglądaj źródła

Metrics endpoint now respects baseurl

sparky8251 5 lat temu
rodzic
commit
997b71bbef
1 zmienionych plików z 1 dodań i 1 usunięć
  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");
                 }
             });