lightfinder config, securing methods with stricter checking and added pair request notifications
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LightlessSyncServer.Configuration;
|
||||
|
||||
public class BroadcastOptions
|
||||
{
|
||||
[Required]
|
||||
public string RedisKeyPrefix { get; set; } = "broadcast:";
|
||||
|
||||
[Range(1, int.MaxValue)]
|
||||
public int EntryTtlSeconds { get; set; } = 300;
|
||||
|
||||
[Range(1, int.MaxValue)]
|
||||
public int MaxStatusBatchSize { get; set; } = 30;
|
||||
|
||||
public bool NotifyOwnerOnPairRequest { get; set; } = true;
|
||||
|
||||
public bool EnableBroadcasting { get; set; } = true;
|
||||
|
||||
public bool EnableSyncshellBroadcastPayloads { get; set; } = true;
|
||||
|
||||
public string PairRequestNotificationTemplate { get; set; } = "{DisplayName} sent you a pair request. To accept, right-click them, open the context menu, and send a request back.";
|
||||
}
|
||||
Reference in New Issue
Block a user