2026-10-01 10:46:09 +02:00
|
|
|
namespace PrivaPub.Infrastructure.Http
|
|
|
|
|
{
|
|
|
|
|
public class FederationOptions
|
|
|
|
|
{
|
|
|
|
|
public bool AllowPrivateNetworks { get; set; }
|
|
|
|
|
public bool AllowPlainHttp { get; set; }
|
2026-10-01 12:30:57 +02:00
|
|
|
public bool SecureMode { get; set; }
|
2026-10-01 13:19:16 +02:00
|
|
|
public bool AcceptAnyCertificate { get; set; }
|
2026-10-01 18:43:39 +02:00
|
|
|
public bool FetchLinkPreviews { get; set; } = true;//owner decision 1: the server reads linked pages of public posts
|
2026-10-05 19:16:30 +02:00
|
|
|
// how many received activities are processed at once, and deliveries made at once (each still at most two per host).
|
|
|
|
|
// At two the inbox kept up with about 110 activities a second (tools/pasture/load.sh)
|
|
|
|
|
public int InboxConcurrency { get; set; } = 8;
|
|
|
|
|
public int DeliveryConcurrency { get; set; } = 8;
|
2026-10-05 23:11:59 +02:00
|
|
|
// relays the instance actor subscribes to, by their actor's (or inbox's) address: their public posts come to the
|
|
|
|
|
// federated timeline, and nothing is sent to them but the subscription
|
|
|
|
|
public List<string> Relays { get; set; } = new();
|
2026-10-01 10:46:09 +02:00
|
|
|
}
|
|
|
|
|
}
|