mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(instance): make the status page URL configurable (#1159)
This commit is contained in:
@@ -299,7 +299,7 @@ const ACCEPTED_TABLE_FINDINGS = new Map<string, Readonly<Partial<Record<TableRul
|
||||
['http-api/guild-moderation.mdx', {'table-cell': 1}],
|
||||
['http-api/guild-stickers.mdx', {'table-cell': 3}],
|
||||
['http-api/guilds.mdx', {'table-fit': 1, 'table-identifier': 4}],
|
||||
['http-api/instance.mdx', {'table-identifier': 4}],
|
||||
['http-api/instance.mdx', {'table-identifier': 5}],
|
||||
['http-api/invites.mdx', {'table-cell': 6}],
|
||||
['http-api/messages.mdx', {'table-fit': 1, 'table-cell': 20}],
|
||||
['http-api/permissions.mdx', {'table-cell': 8}],
|
||||
|
||||
@@ -374,7 +374,7 @@ Branding, setup state, legal documents, and registration fields a client reads b
|
||||
|
||||
## Public branding object
|
||||
|
||||
The instance identity a client renders: its name, its images, and its theme colour. The image URLs customise browser metadata, install metadata, and link previews.
|
||||
The instance identity a client renders: its name, its images, its theme colour, and its status page links. The image URLs customise browser metadata, install metadata, and link previews.
|
||||
|
||||
### Structure
|
||||
|
||||
@@ -387,6 +387,8 @@ The instance identity a client renders: its name, its images, and its theme colo
|
||||
| wordmark_url | ?string | Application wordmark URL, or null |
|
||||
| favicon_url | ?string | Browser favicon URL, or null |
|
||||
| theme_color | ?string | Browser theme colour, or null |
|
||||
| status_page_url | ?string | Public status page URL, or null |
|
||||
| status_page_incident_history_url | ?string | Status page incident history URL, or null |
|
||||
|
||||
## Public setup state object
|
||||
|
||||
|
||||
@@ -1243,6 +1243,14 @@ Default empty. The favicon. Its origin is added to the CSP by `app-proxy`.
|
||||
|
||||
Default empty. The theme colour.
|
||||
|
||||
#### `FLUXER_APP_STATUS_PAGE_URL`
|
||||
|
||||
Default empty. The public status page. The web app links to it when loading stalls, and polls its Instatus `summary.json` and `components.json` for incidents and maintenance. Empty removes the link and stops the polling. `app-proxy` does not add this origin to the CSP, so a status page off `fluxerstatus.com` also needs it in `FLUXER_CSP_EXTRA_CONNECT_SRC`.
|
||||
|
||||
#### `FLUXER_APP_STATUS_PAGE_INCIDENT_HISTORY_URL`
|
||||
|
||||
Default empty. The incident history page of the status page.
|
||||
|
||||
#### `FLUXER_INSTANCE_SETUP_CONFIGURED`
|
||||
|
||||
Default `false`. Whether setup is marked complete. The stored `app_public_config` row wins whenever its `setup.configured` is a boolean. This variable supplies the default only while no such row exists, and only on a self-hosted instance. Off a self-hosted instance the state is always true whatever this says.
|
||||
|
||||
Reference in New Issue
Block a user