A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
docs: fix stale reference pages (#3685)
Hampusc0b77e0c661e
diff --git a/fluxer_docs/src/content/docs/admin-api/instance.mdx b/fluxer_docs/src/content/docs/admin-api/instance.mdxindex 36705c2b5..e5028bd07 100644--- a/fluxer_docs/src/content/docs/admin-api/instance.mdx+++ b/fluxer_docs/src/content/docs/admin-api/instance.mdx@@ -72,7 +72,7 @@ Settings for the instance's OpenID Connect provider.| scope | ?string | Space-separated scopes || allowed_domains | array[string] | Email domains allowed to sign in (up to 100 entries) || auto_provision | boolean | Whether a first sign-in creates an account |-| username_from_provider | boolean | Whether each SSO sign-in sets the username from the provider, so SSO accounts can't change it. Off by default, and only on `username` instances |+| username_from_provider | boolean | Whether SSO accounts get their username from the provider and can't change it, on `username` instances only || redirect_uri<sup>1</sup> | ?string | Redirect URI to register with the provider || groups_claim | ?string | The claim that lists a person's groups, or null for `groups` (up to 128 characters) || group_role_mappings<sup>2</sup> | array[[SSO group role mapping](#sso-group-role-mapping-object) object] | Groups whose members get a role in the single community (up to 100 entries) |diff --git a/fluxer_docs/src/content/docs/admin-api/search-indexes.mdx b/fluxer_docs/src/content/docs/admin-api/search-indexes.mdxindex 2dcac160f..82d4cf9de 100644--- a/fluxer_docs/src/content/docs/admin-api/search-indexes.mdx+++ b/fluxer_docs/src/content/docs/admin-api/search-indexes.mdx@@ -65,13 +65,15 @@ An unknown or expired `job_id` returns the not found structure, and every other| status | string | One of `in_progress`, `completed`, or `failed` || index_type | string | The [search index name](#search-index-names) being rebuilt || phase? | string | For `all`, the index it is on, `messages`, or `queued` before it starts |-| total? | number | Equal to `indexed` until `status` is `completed`, except for `discovery`, where it is the number of approved listings, and in the `all` phases that count guilds or channels |-| indexed? | number | The number of documents written so far, or of guilds or channels done in the `guild_members`, `threads` and `messages` phases of `all` |+| total?<sup>1</sup> | number | The progress total |+| indexed?<sup>1</sup> | number | The number of documents written so far || started_at? | ISO8601 timestamp | The time the rebuild last reported progress || completed_at? | ISO8601 timestamp | The time the rebuild finished, when `status` is `completed` || failed_at? | ISO8601 timestamp | The time the rebuild failed, when `status` is `failed` || error? | string | The failure text, when `status` is `failed` |+<sup>1</sup> In the `guild_members`, `threads` and `messages` phases of `all`, both count guilds or channels. For `discovery`, `total` is the number of approved listings. Otherwise `total` equals `indexed` until `status` is `completed`.+## Refresh search index<RouteHeader method="POST" path="/v1/admin/search/indexes/{index_name}/refreshes" auditReason />diff --git a/fluxer_docs/src/content/docs/admin-api/voice.mdx b/fluxer_docs/src/content/docs/admin-api/voice.mdxindex 79f3a773e..d37f10b69 100644--- a/fluxer_docs/src/content/docs/admin-api/voice.mdx+++ b/fluxer_docs/src/content/docs/admin-api/voice.mdx@@ -79,6 +79,7 @@ A voice server is one LiveKit deployment in one region, identified by its `regio| longitude | ?number | The longitude used for this server, or null to use the region's || is_active | boolean | Whether new sessions can be placed on the server || soft_connection_limit | ?integer | See [soft connection limits](#soft-connection-limits), or null for none (1-2147483647) |+| notes | ?string | Admin notes about the server, or null for none || vip_only | boolean | Whether the guild needs `VIP_VOICE` || required_guild_features | array[string] | [Guild features](/http-api/guilds/#guild-features) that admit a guild (max 100) || allowed_guild_ids | array[snowflake] | The guilds admitted without other guild checks (max 1000) |@@ -295,6 +296,7 @@ Adds a server to a region, and a `server_id` already in the region overwrites th| longitude?<sup>1</sup> | ?number | The longitude used for this server, or null to use the region's || is_active? | boolean | Whether new sessions can be placed on the server (default true) || soft_connection_limit? | ?integer | See [soft connection limits](#soft-connection-limits), or null for none (1-2147483647) |+| notes? | ?string | Admin notes about the server, trimmed, with an empty value stored as null (max 2000 characters) || vip_only? | boolean | Whether the guild needs `VIP_VOICE` (default false) || required_guild_features? | array[string] | [Guild features](/http-api/guilds/#guild-features) that admit a guild (max 100) || allowed_guild_ids? | array[snowflake] | The guilds admitted without other guild checks (max 1000) |@@ -334,6 +336,7 @@ Updates a server, and an array you send replaces the stored one. Requires `voice| longitude?<sup>1</sup> | ?number | The longitude used for this server, or null to use the region's || is_active? | boolean | Whether new sessions can be placed on the server || soft_connection_limit? | ?integer | See [soft connection limits](#soft-connection-limits), or null for none (1-2147483647) |+| notes? | ?string | Admin notes about the server, trimmed, with null or an empty value clearing them (max 2000 characters) || vip_only? | boolean | Whether the guild needs `VIP_VOICE` || required_guild_features? | array[string] | [Guild features](/http-api/guilds/#guild-features) that admit a guild (max 100) || allowed_guild_ids? | array[snowflake] | The guilds admitted without other guild checks (max 1000) |diff --git a/fluxer_docs/src/content/docs/http-api/authentication.mdx b/fluxer_docs/src/content/docs/http-api/authentication.mdxindex d78c8ff0f..6dd919d33 100644--- a/fluxer_docs/src/content/docs/http-api/authentication.mdx+++ b/fluxer_docs/src/content/docs/http-api/authentication.mdx@@ -1254,7 +1254,7 @@ Returns the [handoff status](#handoff-status-object) and, once, the new session| --- | --- | --- || 200 | [handoff status](#handoff-status-object) object | The status was returned || 400 | [error response](/http-api/#error-response) | `INVALID_HANDOFF_CODE` when the code is malformed |-| 429 | [error response](/http-api/#error-response) | `HANDOFF_ATTEMPTS_EXCEEDED` when this IP address has 5 failed handoff attempts in 15 minutes and the poll secret is wrong, with `retry_after` |+| 429 | [error response](/http-api/#error-response) | `HANDOFF_ATTEMPTS_EXCEEDED` with `retry_after` for a wrong poll secret once this IP address has 5 failures in 15 minutes |The rate limit is 60 requests per minute, on the shared `auth:handoff:status` bucket.diff --git a/fluxer_docs/src/content/docs/http-api/unfurl.mdx b/fluxer_docs/src/content/docs/http-api/unfurl.mdxindex 6ef4367d1..2e186c423 100644--- a/fluxer_docs/src/content/docs/http-api/unfurl.mdx+++ b/fluxer_docs/src/content/docs/http-api/unfurl.mdx@@ -50,3 +50,75 @@ Returns the embeds for `url`. Fluxer only fetches public HTTP and HTTPS addresse| 504 | [error response](/http-api/#error-response) | `GATEWAY_TIMEOUT` when the unfurl service doesn't answer within 12 seconds |The rate limit is 10 requests per minute, on the `unfurl:debug` bucket.++## ActivityPub actor++To preview a fediverse post, the unfurl service fetches the post's ActivityPub object. With `FLUXER_ACTIVITYPUB_SIGNING_KEY_BASE64` set, it signs those fetches as the instance actor, and the server it fetches from checks the signature against the actor's public key. Without the key, each actor route returns 404 `NOT_FOUND`.++The actor's ID is the `api_public` [endpoint](/http-api/instance/#instance-endpoints-object) followed by `/activitypub/actor`. Its key ID is the actor ID followed by `#main-key`.++These routes share a rate limit of 60 requests per minute, on the `activity_pub:document` bucket.++## Get the ActivityPub actor++<RouteHeader method="GET" path="/activitypub/actor" unauthenticated />++Returns the instance actor as an `application/activity+json` document of type `Application`, with its public key in PEM form. Its `preferredUsername` is the hostname of the `api_public` endpoint. Responses may be cached for 5 minutes.++### Response++| Status | Body | Condition |+| --- | --- | --- |+| 200 | ActivityPub actor document | Request signing is on |+| 404 | [error response](/http-api/#error-response) | `NOT_FOUND` when request signing is off |+| 503 | [error response](/http-api/#error-response) | `SERVICE_UNAVAILABLE` when no unfurl service is answering |++## Get the ActivityPub outbox++<RouteHeader method="GET" path="/activitypub/actor/outbox" unauthenticated />++Returns the actor's outbox as an empty `OrderedCollection`.++### Response++| Status | Body | Condition |+| --- | --- | --- |+| 200 | ActivityPub collection document | Request signing is on |+| 404 | [error response](/http-api/#error-response) | `NOT_FOUND` when request signing is off |+| 503 | [error response](/http-api/#error-response) | `SERVICE_UNAVAILABLE` when no unfurl service is answering |++## Post to the ActivityPub inbox++<RouteHeader method="POST" path="/activitypub/actor/inbox" unauthenticated />++Accepts any activity and discards it.++### Response++| Status | Body | Condition |+| --- | --- | --- |+| 202 | empty | Request signing is on |+| 404 | [error response](/http-api/#error-response) | `NOT_FOUND` when request signing is off |+| 503 | [error response](/http-api/#error-response) | `SERVICE_UNAVAILABLE` when no unfurl service is answering |++## Look up the actor with WebFinger++<RouteHeader method="GET" path="/.well-known/webfinger" unauthenticated />++Returns an `application/jrd+json` document whose `self` link points to the actor. The edge serves this path at the root of the public origin. Responses may be cached for 5 minutes.++### Query parameters++| Field | Type | Description |+| --- | --- | --- |+| resource | string | The actor ID, or `acct:{hostname}@{host}` for the `api_public` endpoint |++For an `api_public` endpoint of `https://chat.example.com/api`, the account is `acct:[email protected]`.++### Response++| Status | Body | Condition |+| --- | --- | --- |+| 200 | WebFinger document | `resource` is the actor |+| 404 | [error response](/http-api/#error-response) | `NOT_FOUND` when request signing is off or `resource` is anything else |+| 503 | [error response](/http-api/#error-response) | `SERVICE_UNAVAILABLE` when no unfurl service is answering |diff --git a/fluxer_docs/src/content/docs/operator/rexctl.mdx b/fluxer_docs/src/content/docs/operator/rexctl.mdxindex 8c33fb56c..067bd328e 100644--- a/fluxer_docs/src/content/docs/operator/rexctl.mdx+++ b/fluxer_docs/src/content/docs/operator/rexctl.mdx@@ -370,6 +370,10 @@ rexctl install [flags]Open the ports Fluxer needs in ufw or firewalld. The default is `true`.+- `--project string`++ Name for this instance's containers and volumes, for running more than one instance on a host. The default is `fluxer`.+- `--registration string`Who can create an account (invite, approval, open or closed).diff --git a/fluxer_rexctl/cmd/install.go b/fluxer_rexctl/cmd/install.goindex e68e169ce..33b293ec4 100644--- a/fluxer_rexctl/cmd/install.go+++ b/fluxer_rexctl/cmd/install.go@@ -103,10 +103,9 @@ func newInstallCmd(app *App) *cobra.Command {fl.BoolVar(&f.DryRun, "dry-run", false, "show what would happen without changing anything")fl.BoolVar(&f.TakeOver, "take-over", false, "take over Fluxer data found on this machine")fl.BoolVar(&f.DeleteOld, "delete-old-data", false, "delete Fluxer data found on this machine and start fresh")- fl.StringVar(&f.Project, "project", defaultProject, "name for this instance's containers and volumes")+ fl.StringVar(&f.Project, "project", defaultProject, "name for this instance's containers and volumes, for running more than one instance on a host")fl.IntVar(&f.VoiceTCPPort, "voice-tcp-port", 0, "TCP port for voice and video, for running more than one instance on a host")fl.IntVar(&f.VoiceUDPPort, "voice-udp-port", 0, "UDP port for voice and video, for running more than one instance on a host")- _ = fl.MarkHidden("project")confirmFlag(c, &f.Confirm)f.Setup.bind(c)f.Storage.bind(c)