2 - Populate fedi-discover config with http settings and defaults
This commit is contained in:
parent
6c643373f2
commit
3706a81d3c
1 changed files with 16 additions and 1 deletions
|
|
@ -3,5 +3,20 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
// Instance list, polling intervals, and HTTP client config land here.
|
||||
'http' => [
|
||||
'timeout' => 10,
|
||||
// Default points at the project site so fediverse admins can always trace a Trove poller
|
||||
// back to the project. Operators running their own deployment should override this via
|
||||
// `php artisan vendor:publish --tag=fedi-discover-config` with their own contact URL.
|
||||
'user_agent' => 'Trove/1.0 (+https://trove.lvl0.xyz)',
|
||||
'max_redirects' => 3,
|
||||
],
|
||||
|
||||
'defaults' => [
|
||||
// Minimum recommended: 60. Mastodon/Lemmy rate limits apply per-instance.
|
||||
'interval_seconds' => 300,
|
||||
],
|
||||
|
||||
// Instances are DB-managed (table: fedi_discover_instances).
|
||||
// See the Instance model + admin UI (TBD). No instance list here.
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue