mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat(instance): make the status page URL configurable (#1159)
This commit is contained in:
1 parent
7412ec3395
commit
f753659899
58 files changed
+1192
-904
No files matched your search
@@ -670,6 +670,8 @@ function applyPublicPort(config: MasterConfig, endpoints: DerivedEndpoints): Mas
|
||||
logo_url: normalizeOptional(branding.logo_url),
|
||||
wordmark_url: normalizeOptional(branding.wordmark_url),
|
||||
favicon_url: normalizeOptional(branding.favicon_url),
|
||||
status_page_url: normalizeOptional(branding.status_page_url),
|
||||
status_page_incident_history_url: normalizeOptional(branding.status_page_incident_history_url),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -16,6 +16,8 @@ export interface InstanceBrandingConfig {
|
||||
wordmark_url?: string;
|
||||
favicon_url?: string;
|
||||
theme_color?: string;
|
||||
status_page_url?: string;
|
||||
status_page_incident_history_url?: string;
|
||||
}
|
||||
|
||||
export interface MasterConfig {
|
||||
|
||||
@@ -460,6 +460,8 @@ describe('ConfigLoader', () => {
|
||||
FLUXER_APP_WORDMARK_URL: 'https://assets.example/wordmark.png',
|
||||
FLUXER_APP_FAVICON_URL: 'https://assets.example/favicon.png',
|
||||
FLUXER_APP_THEME_COLOR: '#123456',
|
||||
FLUXER_APP_STATUS_PAGE_URL: 'https://status.example',
|
||||
FLUXER_APP_STATUS_PAGE_INCIDENT_HISTORY_URL: 'https://status.example/history',
|
||||
FLUXER_INSTANCE_SETUP_CONFIGURED: 'true',
|
||||
FLUXER_ABUSE_INBOUND_PHONE_COUNTRY_CODES: 'AA,BB',
|
||||
FLUXER_ABUSE_PHONE_INBOUND_REQUIRED_PREFIXES: '+101,+202',
|
||||
@@ -484,6 +486,8 @@ describe('ConfigLoader', () => {
|
||||
wordmark_url: 'https://assets.example/wordmark.png',
|
||||
favicon_url: 'https://assets.example/favicon.png',
|
||||
theme_color: '#123456',
|
||||
status_page_url: 'https://status.example',
|
||||
status_page_incident_history_url: 'https://status.example/history',
|
||||
});
|
||||
expect(config.instance.setup.configured).toBe(true);
|
||||
expect(config.instance.abuse_policy).toEqual({
|
||||
|
||||
@@ -380,6 +380,8 @@ const NAMED_FLUXER_ENV_OVERRIDES: Record<string, NamedEnvOverride> = {
|
||||
FLUXER_APP_WORDMARK_URL: {path: ['instance', 'branding', 'wordmark_url']},
|
||||
FLUXER_APP_FAVICON_URL: {path: ['instance', 'branding', 'favicon_url']},
|
||||
FLUXER_APP_THEME_COLOR: {path: ['instance', 'branding', 'theme_color']},
|
||||
FLUXER_APP_STATUS_PAGE_URL: {path: ['instance', 'branding', 'status_page_url']},
|
||||
FLUXER_APP_STATUS_PAGE_INCIDENT_HISTORY_URL: {path: ['instance', 'branding', 'status_page_incident_history_url']},
|
||||
FLUXER_INSTANCE_SETUP_CONFIGURED: {path: ['instance', 'setup', 'configured'], parse: parseBoolean},
|
||||
FLUXER_ABUSE_INBOUND_PHONE_COUNTRY_CODES: {
|
||||
path: ['instance', 'abuse_policy', 'inbound_phone_country_codes'],
|
||||
|
||||
Reference in new issue
Block a user