- removed all ability to provide your cid to the server through params, cid is gained from JWT claims - improved verification of who owns a cid, which includes locking a cid to a uid - locks and persisting entries of broadcasting are cleaned up on disconnection - method identification logic was rewritten to fit these changes
73 lines
2.1 KiB
JSON
73 lines
2.1 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Host=localhost;Port=5432;Database=;Username=;Password="
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"LightlessSyncServer.Authentication": "Warning",
|
|
"System.IO.IOException": "Warning"
|
|
},
|
|
"File": {
|
|
"BasePath": "logs",
|
|
"FileAccessMode": "KeepOpenAndAutoFlush",
|
|
"FileEncodingName": "utf-8",
|
|
"DateFormat": "yyyMMdd",
|
|
"MaxFileSize": 10485760,
|
|
"Files": [
|
|
{
|
|
"Path": "lightless-<counter>.log"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"LightlessSync": {
|
|
"DbContextPoolSize": 2000,
|
|
"CdnFullUrl": "http://localhost/cache/",
|
|
"ServiceAddress": "http://localhost:5002",
|
|
"StaticFileServiceAddress": "http://localhost:5003"
|
|
},
|
|
"Broadcast": {
|
|
"RedisKeyPrefix": "broadcast:",
|
|
"EntryTtlSeconds": 10800,
|
|
"MaxStatusBatchSize": 30,
|
|
"NotifyOwnerOnPairRequest": true,
|
|
"EnableBroadcasting": true,
|
|
"EnableSyncshellBroadcastPayloads": true,
|
|
"PairRequestNotificationTemplate": "{DisplayName} sent you a pair request. To accept, right-click them, open the context menu, and send a request back.",
|
|
"PairRequestRateLimit": 5,
|
|
"PairRequestRateWindow": 60
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Kestrel": {
|
|
"Endpoints": {
|
|
"Http": {
|
|
"Url": "http://+:6000",
|
|
"Certificate": {
|
|
"Subject": "sync.lightless-sync.org",
|
|
"Store": "My",
|
|
"Location": "LocalMachine"
|
|
//"AllowInvalid": false
|
|
// "Path": "", //use path, keypath and password to provide a valid certificate if not using windows key store
|
|
// "KeyPath": ""
|
|
// "Password": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"IpRateLimiting": {
|
|
"EnableEndpointRateLimiting": false,
|
|
"StackBlockedRequests": false,
|
|
"RealIpHeader": "X-Real-IP",
|
|
"ClientIdHeader": "X-ClientId",
|
|
"HttpStatusCode": 429,
|
|
"IpWhitelist": [ ],
|
|
"GeneralRules": [ ]
|
|
},
|
|
"IPRateLimitPolicies": {
|
|
"IpRules": []
|
|
}
|
|
}
|