Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/commit/cbecf28b254cf348728471464c5ea40d67d8e098
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
7 additions and
5 deletions
@ -5,13 +5,13 @@ using Serilog.Templates;
namespace Recyclarr.Notifications ;
public class NotificationLogSinkConfigurator ( NotificationEmitter emitter , ISettings < Recyclarr Settings> settings )
public class NotificationLogSinkConfigurator ( NotificationEmitter emitter , ISettings < Notification Settings> settings )
: ILogConfigurator
{
public void Configure ( LoggerConfiguration config )
{
// If the user has disabled notifications, don't bother with adding the notification sink.
if ( settings . Value . Notifications is null )
if ( ! settings . Value . IsConfigured( ) )
{
return ;
}
@ -22,7 +22,7 @@ public sealed class NotificationService(
private readonly Dictionary < string , List < IPresentableNotification > > _events = new ( ) ;
private readonly CompositeDisposable _eventConnection = new ( ) ;
private readonly AppriseNotificationSettings ? _settings = settings . Optional Value? . Apprise ;
private readonly AppriseNotificationSettings ? _settings = settings . Value. Apprise ;
private string? _activeInstanceName ;
@ -33,13 +33,15 @@ public record RecyclarrSettings
public bool EnableSslCertificateValidation { get ; [ UsedImplicitly ] init ; } = true ;
public LogJanitorSettings LogJanitor { get ; [ UsedImplicitly ] init ; } = new ( ) ;
public string? GitPath { get ; [ UsedImplicitly ] init ; }
public NotificationSettings ? Notifications { get ; [ UsedImplicitly ] init ; }
public NotificationSettings Notifications { get ; [ UsedImplicitly ] init ; } = new ( ) ;
}
public record NotificationSettings
{
public NotificationVerbosity Verbosity { get ; [ UsedImplicitly ] init ; } = NotificationVerbosity . Normal ;
public AppriseNotificationSettings ? Apprise { get ; [ UsedImplicitly ] init ; }
public bool IsConfigured ( ) = > Apprise is not null ;
}
public enum NotificationVerbosity
@ -7,7 +7,7 @@ public class RecyclarrSettingsValidator : AbstractValidator<RecyclarrSettings>
{
public RecyclarrSettingsValidator ( )
{
RuleFor ( x = > x . Notifications ) . Set NonNullable Validator( new NotificationSettingsValidator ( ) ) ;
RuleFor ( x = > x . Notifications ) . Set Validator( new NotificationSettingsValidator ( ) ) ;
}
}