Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/c5684439f4bd964e0db58578c6770debca5b307f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
34 additions and
0 deletions
@ -0,0 +1,31 @@
using System ;
using System.IO ;
using NLog ;
using NzbDrone.Common.Disk ;
using NzbDrone.Common.EnvironmentInfo ;
namespace NzbDrone.Api.Frontend.Mappers
{
public class RobotsTxtMapper : StaticResourceMapperBase
{
private readonly IAppFolderInfo _appFolderInfo ;
public RobotsTxtMapper ( IAppFolderInfo appFolderInfo , IDiskProvider diskProvider , Logger logger )
: base ( diskProvider , logger )
{
_appFolderInfo = appFolderInfo ;
}
public override string Map ( string resourceUrl )
{
var path = Path . Combine ( "Content" , "robots.txt" ) ;
return Path . Combine ( _appFolderInfo . StartUpFolder , "UI" , path ) ;
}
public override bool CanHandle ( string resourceUrl )
{
return resourceUrl . Equals ( "/robots.txt" ) ;
}
}
}
@ -100,6 +100,7 @@
<Compile Include= "Extensions\AccessControlHeaders.cs" />
<Compile Include= "Extensions\Pipelines\CorsPipeline.cs" />
<Compile Include= "Frontend\Mappers\LoginHtmlMapper.cs" />
<Compile Include= "Frontend\Mappers\RobotsTxtMapper.cs" />
<Compile Include= "Parse\ParseModule.cs" />
<Compile Include= "Parse\ParseResource.cs" />
<Compile Include= "ManualImport\ManualImportModule.cs" />
@ -0,0 +1,2 @@
User-agent: *
Disallow: /