Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/7f28f64cbee676ce289a8c00c37b23c73fc68e29
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
10 additions and
5 deletions
@ -140,6 +140,16 @@ namespace NzbDrone.Host
} ,
} ;
c . AddServer ( new OpenApiServer
{
Url = "{protocol}://{hostpath}" ,
Variables = new Dictionary < string , OpenApiServerVariable >
{
{ "protocol" , new OpenApiServerVariable { Default = "http" , Enum = new List < string > { "http" , "https" } } } ,
{ "hostpath" , new OpenApiServerVariable { Default = "localhost:9696" } }
}
} ) ;
c . AddSecurityDefinition ( "apikey" , apikeyQuery ) ;
c . AddSecurityRequirement ( new OpenApiSecurityRequirement
@ -244,11 +254,6 @@ namespace NzbDrone.Host
{
app . UseSwagger ( c = >
{
c . PreSerializeFilters . Add ( ( swagger , httpReq ) = >
{
swagger . Servers = new List < OpenApiServer > { new OpenApiServer { Url = $"{httpReq.Scheme}://{httpReq.Host.Value}" } } ;
} ) ;
c . RouteTemplate = "docs/{documentName}/openapi.json" ;
} ) ;
}