- Add discovery API endpoints to TeleBot (probe, initialize, configure, status) - Add LivenessService for LittleShop connectivity monitoring with 5min shutdown - Add BotDiscoveryService to LittleShop for remote bot management - Add Admin UI: DiscoverRemote wizard, RepushConfig page, status badges - Add remote discovery fields to Bot model (RemoteAddress, RemotePort, etc.) - Add CheckRemoteStatus and RepushConfig controller actions - Update Index/Details views to show remote bot indicators - Shared secret authentication for discovery, BotKey for post-init 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Data Source=teleshop.db"
|
|
},
|
|
"Jwt": {
|
|
"Key": "",
|
|
"Issuer": "LittleShop",
|
|
"Audience": "LittleShop",
|
|
"ExpiryInHours": 24
|
|
},
|
|
"RoyalMail": {
|
|
"ClientId": "",
|
|
"ClientSecret": "",
|
|
"BaseUrl": "https://api.royalmail.net/",
|
|
"SenderAddress1": "SilverLabs Ltd, 123 Business Street",
|
|
"SenderCity": "London",
|
|
"SenderPostCode": "SW1A 1AA",
|
|
"SenderCountry": "United Kingdom"
|
|
},
|
|
"WebPush": {
|
|
"VapidPublicKey": "BMc6fFJZ8oIQKQzcl3kMnP9tTsjrm3oI_VxLt3lAGYUMWGInzDKn7jqclEoZzjvXy1QXGFb3dIun8mVBwh-QuS4",
|
|
"VapidPrivateKey": "dYuuagbz2CzCnPDFUpO_qkGLBgnN3MEFZQnjXNkc1MY",
|
|
"Subject": "mailto:admin@littleshop.local"
|
|
},
|
|
"DataRetention": {
|
|
"Enabled": true,
|
|
"CleanupTime": "02:00",
|
|
"CheckIntervalHours": 24,
|
|
"DefaultRetentionDays": 730,
|
|
"DeletionGracePeriodDays": 30,
|
|
"MaxCustomersPerRun": 100,
|
|
"DryRunMode": false,
|
|
"NotifyAdminBeforeDeletion": true,
|
|
"NotificationDaysBeforeDeletion": 7
|
|
},
|
|
"IPWhitelist": {
|
|
"Enabled": false,
|
|
"UseForwardedHeaders": true,
|
|
"ShowClientIP": false,
|
|
"WhitelistedIPs": [
|
|
"127.0.0.1",
|
|
"::1"
|
|
],
|
|
"WhitelistedCIDRs": [
|
|
"192.168.0.0/16",
|
|
"10.0.0.0/8",
|
|
"172.16.0.0/12"
|
|
]
|
|
},
|
|
"BotDiscovery": {
|
|
"SharedSecret": "CHANGE_THIS_SHARED_SECRET_32_CHARS",
|
|
"ConnectionTimeoutSeconds": 10,
|
|
"ProbeRetryAttempts": 3,
|
|
"WebhookSecret": "",
|
|
"LittleShopApiUrl": "",
|
|
"Comment": "SharedSecret must match TeleBot Discovery:Secret. LittleShopApiUrl is the public URL for TeleBot to call back."
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
} |