mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-11-20 01:01:18 -08:00
feat(domain): prepare the move to fluxer.com (#3768)
This commit is contained in:
1 parent
1e526a8915
commit
50adb104a5
49 files changed
+118
-100
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Code of Conduct
|
||||
|
||||
The [Fluxer community guidelines](https://fluxer.app/guidelines) define the standards of conduct for this repository. They apply to issues, pull requests, reviews, discussions, commits, branch names and all submitted content.
|
||||
The [Fluxer community guidelines](https://fluxer.com/guidelines) define the standards of conduct for this repository. They apply to issues, pull requests, reviews, discussions, commits, branch names and all submitted content.
|
||||
|
||||
They also apply to conduct outside this repository when that conduct creates a safety risk for anyone participating in it.
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ A build stops with an error when it finds one of the old names `PUBLIC_BUILD_VER
|
||||
|
||||
Report bugs and request features at [feedback.fluxer.com](https://feedback.fluxer.com).
|
||||
|
||||
Report security vulnerabilities privately through [fluxer.app/security](https://fluxer.app/security). Never post them publicly.
|
||||
Report security vulnerabilities privately through [fluxer.com/security](https://fluxer.com/security). Never post them publicly.
|
||||
|
||||
Read the [operator documentation](https://fluxer.dev) for self-hosting questions.
|
||||
|
||||
|
||||
+2
-2
@@ -2,6 +2,6 @@
|
||||
|
||||
Do not report a vulnerability in a pull request, on feedback.fluxer.com, in a Fluxer community, or in a direct message to staff.
|
||||
|
||||
Submit a report through <https://fluxer.app/security> or email <security@fluxer.com>. Include the affected component, impact, reproduction steps, and supporting evidence. Remove unrelated personal data and secrets.
|
||||
Submit a report through <https://fluxer.com/security> or email <security@fluxer.com>. Include the affected component, impact, reproduction steps, and supporting evidence. Remove unrelated personal data and secrets.
|
||||
|
||||
The programme scope, testing rules, safe harbour, disclosure process, and reward terms are published at <https://fluxer.app/security>. That page is authoritative.
|
||||
The programme scope, testing rules, safe harbour, disclosure process, and reward terms are published at <https://fluxer.com/security>. That page is authoritative.
|
||||
@@ -6,12 +6,12 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://fluxer.app/download">
|
||||
<img src="https://img.shields.io/badge/Download-fluxer.app-4641D9" alt="Download" /></a>
|
||||
<a href="https://docs.fluxer.app">
|
||||
<img src="https://img.shields.io/badge/Docs-docs.fluxer.app-blue" alt="Documentation" /></a>
|
||||
<a href="https://fluxer.app/donate">
|
||||
<img src="https://img.shields.io/badge/Donate-fluxer.app%2Fdonate-brightgreen" alt="Donate" /></a>
|
||||
<a href="https://fluxer.com/download">
|
||||
<img src="https://img.shields.io/badge/Download-fluxer.com-4641D9" alt="Download" /></a>
|
||||
<a href="https://docs.fluxer.com">
|
||||
<img src="https://img.shields.io/badge/Docs-docs.fluxer.com-blue" alt="Documentation" /></a>
|
||||
<a href="https://fluxer.com/donate">
|
||||
<img src="https://img.shields.io/badge/Donate-fluxer.com%2Fdonate-brightgreen" alt="Donate" /></a>
|
||||
<a href="./LICENSE">
|
||||
<img src="https://img.shields.io/badge/License-AGPLv3-purple" alt="AGPLv3 License" /></a>
|
||||
</p>
|
||||
@@ -24,7 +24,7 @@
|
||||
# Fluxer
|
||||
|
||||
> [!IMPORTANT]
|
||||
> Bug reports and feature requests have moved to [feedback.fluxer.com](https://feedback.fluxer.com). Sign in with your Fluxer account to post, vote and follow updates. GitHub Issues and Discussions are closed. Report security vulnerabilities privately through [fluxer.app/security](https://fluxer.app/security).
|
||||
> Bug reports and feature requests have moved to [feedback.fluxer.com](https://feedback.fluxer.com). Sign in with your Fluxer account to post, vote and follow updates. GitHub Issues and Discussions are closed. Report security vulnerabilities privately through [fluxer.com/security](https://fluxer.com/security).
|
||||
|
||||
Fluxer is a free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
|
||||
|
||||
@@ -133,7 +133,7 @@ Full setup notes, including canary, are in the [Linux repositories documentation
|
||||
|
||||
## Other ways to run it
|
||||
|
||||
- [Open Fluxer in a browser](https://web.fluxer.app), no install needed.
|
||||
- [Open Fluxer in a browser](https://fluxer.com), no install needed.
|
||||
- [Host your own instance][docs-selfhost] from this repository.
|
||||
|
||||
## Documentation
|
||||
@@ -174,7 +174,7 @@ Use of the Fluxer name and logo is covered by the
|
||||
[android-apk]: https://github.com/fluxerapp/flutter_client/releases
|
||||
[obtainium]: https://obtainium.imranr.dev/
|
||||
[ios-testflight]: https://testflight.apple.com/join/PKZR6pK9
|
||||
[docs]: https://docs.fluxer.app
|
||||
[docs-downloads]: https://docs.fluxer.app/downloads/overview/
|
||||
[docs-linux]: https://docs.fluxer.app/downloads/linux-repositories/
|
||||
[docs-selfhost]: https://docs.fluxer.app/operator/get-started/
|
||||
[docs]: https://docs.fluxer.com
|
||||
[docs-downloads]: https://docs.fluxer.com/downloads/overview/
|
||||
[docs-linux]: https://docs.fluxer.com/downloads/linux-repositories/
|
||||
[docs-selfhost]: https://docs.fluxer.com/operator/get-started/
|
||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ FLUXER_GATEWAY_ENDPOINT=ws://localhost:8088/gateway
|
||||
FLUXER_MEDIA_ENDPOINT=http://localhost:8088/media
|
||||
FLUXER_STATIC_CDN_ENDPOINT=http://localhost:8088
|
||||
FLUXER_ADMIN_ENDPOINT=http://localhost:8088/admin
|
||||
FLUXER_MARKETING_ENDPOINT=https://fluxer.app
|
||||
FLUXER_MARKETING_ENDPOINT=https://fluxer.com
|
||||
FLUXER_TRUST_CLIENT_IP_HEADER=true
|
||||
FLUXER_CLIENT_IP_HEADER_NAME=x-forwarded-for
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ type: application
|
||||
version: 0.1.0
|
||||
appVersion: "v1"
|
||||
kubeVersion: ">=1.29.0-0"
|
||||
home: https://docs.fluxer.app/operator/kubernetes/
|
||||
home: https://docs.fluxer.com/operator/kubernetes/
|
||||
sources:
|
||||
- https://github.com/fluxerapp/fluxer/tree/main/deploy/helm/fluxer
|
||||
keywords:
|
||||
|
||||
@@ -69,4 +69,4 @@ To move to the latest v1 images, pull the repository and upgrade with your value
|
||||
|
||||
Leave out --reuse-values, which keeps the defaults of the old chart version.
|
||||
|
||||
Documentation: https://docs.fluxer.app/operator/kubernetes/
|
||||
Documentation: https://docs.fluxer.com/operator/kubernetes/
|
||||
@@ -1 +1 @@
|
||||
Self-hosting moved to rexctl. Install, upgrade and the compose bundle for each release are in the [self-hosting docs](https://docs.fluxer.app/operator/).
|
||||
Self-hosting moved to rexctl. Install, upgrade and the compose bundle for each release are in the [self-hosting docs](https://docs.fluxer.com/operator/).
|
||||
@@ -64,8 +64,8 @@ LABEL org.opencontainers.image.title="fluxer-admin"
|
||||
LABEL org.opencontainers.image.description="Fluxer admin console"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -35,8 +35,8 @@ LABEL org.opencontainers.image.title="fluxer-api"
|
||||
LABEL org.opencontainers.image.description="Fluxer HTTP API and background workers"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -47,7 +47,7 @@ const PIX: BillingPaymentMethod = {kind: 'named', name: 'Pix'};
|
||||
const NO_METHOD: BillingPaymentMethod = {kind: 'none'};
|
||||
const CHARGE_AT = new Date('2026-11-12T08:00:00Z');
|
||||
const TIME_ZONE = 'Europe/Stockholm';
|
||||
const DONATION_MANAGE_URL = 'https://fluxer.app/donate/manage?email=operator%40example.com';
|
||||
const DONATION_MANAGE_URL = 'https://fluxer.com/donate/manage?email=operator%40example.com';
|
||||
const SUBSCRIPTION_ID = 'sub_1SJHDHFPC94Os7Fd';
|
||||
|
||||
class CaptureEmailProvider implements IEmailProvider {
|
||||
@@ -82,14 +82,14 @@ const config: EmailConfig = {
|
||||
fromEmail: '[email protected]',
|
||||
fromName: 'Fluxer',
|
||||
replyTo: '[email protected]',
|
||||
appBaseUrl: 'https://web.fluxer.app',
|
||||
appBaseUrl: 'https://fluxer.com',
|
||||
apiBaseUrl: 'https://api.fluxer.app',
|
||||
appealsEmail: '[email protected]',
|
||||
privacyEmail: '[email protected]',
|
||||
safetyEmail: '[email protected]',
|
||||
supportEmail: '[email protected]',
|
||||
productName: 'Fluxer',
|
||||
marketingBaseUrl: 'https://fluxer.app',
|
||||
marketingBaseUrl: 'https://fluxer.com',
|
||||
staticCdnBaseUrl: values['static-base'],
|
||||
legalAddress: 'Fluxer Platform AB, c/o Embassy House, Östgötagatan 12, 116 25 Stockholm, Sweden',
|
||||
brandLogo: true,
|
||||
@@ -192,7 +192,7 @@ const SUSPENSION_NOTICE: EmailTemplateVariables['enforcement_notice'] = {
|
||||
summary: 'We suspended your account until Oct 21, 2026, 10:00 AM UTC.',
|
||||
effects: "You can't sign in or use Fluxer anywhere until then. Your account, messages and communities are kept.",
|
||||
rule_title: 'Spam',
|
||||
rule_url: 'https://fluxer.app/guidelines#6-spam-and-service-abuse',
|
||||
rule_url: 'https://fluxer.com/guidelines#6-spam-and-service-abuse',
|
||||
facts:
|
||||
'We found that your account sent unwanted messages in bulk.\n2 messages in #general of Plant Club, between Oct 1, 2026, 9:00 AM UTC and Oct 2, 2026, 6:30 PM UTC.',
|
||||
statement: 'You posted the same link in ten communities.',
|
||||
@@ -213,7 +213,7 @@ const previews: Record<string, Preview> = {
|
||||
service.send(
|
||||
'operator_pass_waitlist_verification',
|
||||
USER,
|
||||
{confirmUrl: `https://fluxer.app/pass/confirm?token=${token}`},
|
||||
{confirmUrl: `https://fluxer.com/pass/confirm?token=${token}`},
|
||||
locale,
|
||||
),
|
||||
sale_open: (locale) => {
|
||||
@@ -222,11 +222,11 @@ const previews: Record<string, Preview> = {
|
||||
'operator_pass_sale_open',
|
||||
USER,
|
||||
{
|
||||
checkoutUrl: 'https://web.fluxer.app/channels/@operator-pass',
|
||||
checkoutUrl: 'https://fluxer.com/channels/@operator-pass',
|
||||
priceFormatted: formatMinorUnitPrice(price.earlyBird, price.currency, locale),
|
||||
priceRisesAt: new Date('2027-01-02T12:00:00Z'),
|
||||
unsubscribeUrl: `https://api.fluxer.app/v1/operator-pass/waitlist/unsubscribe?token=${token}`,
|
||||
unsubscribePageUrl: `https://fluxer.app/pass/unsubscribe?token=${token}`,
|
||||
unsubscribePageUrl: `https://fluxer.com/pass/unsubscribe?token=${token}`,
|
||||
},
|
||||
locale,
|
||||
);
|
||||
@@ -285,7 +285,7 @@ const previews: Record<string, Preview> = {
|
||||
service.send(
|
||||
'donation_magic_link',
|
||||
USER,
|
||||
{manageUrl: `https://fluxer.app/donate/manage#token=${token}`, expiresAt: DATE},
|
||||
{manageUrl: `https://fluxer.com/donate/manage#token=${token}`, expiresAt: DATE},
|
||||
locale,
|
||||
),
|
||||
registration_approved: (locale) => service.send('registration_approved', USER, {}, locale),
|
||||
@@ -297,7 +297,7 @@ const previews: Record<string, Preview> = {
|
||||
service.send(
|
||||
'donation_confirmation',
|
||||
USER,
|
||||
{amountCents: 1000, currency: 'eur', interval: 'month', manageUrl: 'https://fluxer.app/donate/manage'},
|
||||
{amountCents: 1000, currency: 'eur', interval: 'month', manageUrl: 'https://fluxer.com/donate/manage'},
|
||||
locale,
|
||||
),
|
||||
donation_confirmation_once: (locale) =>
|
||||
@@ -308,7 +308,7 @@ const previews: Record<string, Preview> = {
|
||||
amountCents: 2500,
|
||||
currency: 'eur',
|
||||
interval: 'once',
|
||||
manageUrl: 'https://fluxer.app/donate/manage',
|
||||
manageUrl: 'https://fluxer.com/donate/manage',
|
||||
paidAt: DATE,
|
||||
reference: '1234-5678',
|
||||
receiptUrl: 'https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xRXhhbXBsZQ',
|
||||
@@ -326,7 +326,7 @@ const previews: Record<string, Preview> = {
|
||||
period: {start: DATE, end: new Date('2026-11-09T14:30:00Z')},
|
||||
totals: {totalMinor: 1000, paidMinor: 1000, currency: 'EUR', tax: null, reverseCharge: false},
|
||||
invoice: {url: INVOICE_URL, linkUntil: INVOICE_LINK_UNTIL, pdf: null},
|
||||
manageUrl: 'https://fluxer.app/donate/manage',
|
||||
manageUrl: 'https://fluxer.com/donate/manage',
|
||||
},
|
||||
locale,
|
||||
),
|
||||
@@ -354,7 +354,7 @@ const previews: Record<string, Preview> = {
|
||||
amountMinor: 1000,
|
||||
currency: 'EUR',
|
||||
invoiceUrl: INVOICE_URL,
|
||||
manageUrl: 'https://fluxer.app/donate/manage',
|
||||
manageUrl: 'https://fluxer.com/donate/manage',
|
||||
},
|
||||
locale,
|
||||
),
|
||||
@@ -395,7 +395,7 @@ const previews: Record<string, Preview> = {
|
||||
summary: 'We banned your account.',
|
||||
effects: "You can't sign in or use Fluxer anywhere. You may not create or use other accounts.",
|
||||
rule_title: 'Child safety',
|
||||
rule_url: 'https://fluxer.app/guidelines#4-sexual-content-and-protection-of-minors',
|
||||
rule_url: 'https://fluxer.com/guidelines#4-sexual-content-and-protection-of-minors',
|
||||
facts: 'We found content or activity on your account that breaks our rules on protecting children.',
|
||||
statement: null,
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@ import pg from 'pg';
|
||||
|
||||
const MAX_DIAGNOSTIC_FIELD_LENGTH = 128;
|
||||
const INVALID_PASSWORD_CODE = '28P01';
|
||||
const PASSWORD_MISMATCH_DOCS = 'https://docs.fluxer.app/operator/rexctl/#rexctl-doctor';
|
||||
const PASSWORD_MISMATCH_DOCS = 'https://docs.fluxer.com/operator/rexctl/#rexctl-doctor';
|
||||
const SYNCHRONOUS_COMMIT_LEVELS = new Set(['on', 'off', 'local', 'remote_write', 'remote_apply']);
|
||||
|
||||
interface PostgresConnectionDiagnostic {
|
||||
|
||||
@@ -28,6 +28,11 @@ import {createInfoRequestLogger, requestLogger} from '@fluxer/hono/src/middlewar
|
||||
import {resolveClientIpHeaderName} from '@fluxer/ip_utils/src/ClientIp';
|
||||
import type {LoggerInterface} from '@fluxer/logger/src/LoggerInterface';
|
||||
|
||||
const WEB_HOST_ALLOWED_ORIGINS: ReadonlyMap<string, ReadonlySet<string>> = new Map([
|
||||
['web.fluxer.app', new Set(['https://web.fluxer.app', 'https://fluxer.com'])],
|
||||
['web.canary.fluxer.app', new Set(['https://web.canary.fluxer.app', 'https://canary.fluxer.com'])],
|
||||
]);
|
||||
|
||||
interface MiddlewarePipelineOptions {
|
||||
logger: LoggerInterface;
|
||||
nodeEnv: string;
|
||||
@@ -97,10 +102,10 @@ export function configureMiddleware(routes: HonoApp, options: MiddlewarePipeline
|
||||
routes.use(ClientFeaturesMiddleware);
|
||||
if (nodeEnv === 'production') {
|
||||
routes.use('*', async (ctx, next) => {
|
||||
const host = ctx.req.header('host');
|
||||
if (ctx.req.method !== 'GET' && (host === 'web.fluxer.app' || host === 'web.canary.fluxer.app')) {
|
||||
const allowedOrigins = WEB_HOST_ALLOWED_ORIGINS.get(ctx.req.header('host') ?? '');
|
||||
if (ctx.req.method !== 'GET' && allowedOrigins !== undefined) {
|
||||
const origin = ctx.req.header('origin');
|
||||
if (!origin || origin !== `https://${host}`) {
|
||||
if (!origin || !allowedOrigins.has(origin)) {
|
||||
throw new InvalidApiOriginError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ const REPORT_FLOW_LIBRARY: ReportFlowLibrary = {
|
||||
};
|
||||
|
||||
const CRISIS_LINES_URL = 'https://befrienders.org';
|
||||
const COPYRIGHT_HELP_URL = 'https://fluxer.app/help/copyright';
|
||||
const COPYRIGHT_HELP_URL = 'https://fluxer.com/help/copyright';
|
||||
const ADMIN_LOCALE = 'en-US';
|
||||
|
||||
assertValidReportFlowLibrary(REPORT_FLOW_LIBRARY);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"description": "Fluxer is a free and open source instant messaging and VoIP chat app built for friends, groups, and communities.",
|
||||
"homepage": "https://fluxer.app",
|
||||
"homepage": "https://fluxer.com",
|
||||
"author": "Fluxer Platform AB <[email protected]>",
|
||||
"sideEffects": [
|
||||
"*.css",
|
||||
|
||||
@@ -209,7 +209,8 @@ export const premiumCallbackRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
id: 'premiumCallback',
|
||||
path: Routes.PREMIUM_CALLBACK,
|
||||
onEnter: requireAuthentication,
|
||||
onEnter: (context) =>
|
||||
context.url.searchParams.get('product') === 'operator_pass' ? requireAuthentication(context) : undefined,
|
||||
preload: PremiumCallbackPage.preload,
|
||||
component: () => <PremiumCallbackPage data-flx="app.router.app-routes.premium-callback-page" />,
|
||||
});
|
||||
|
||||
@@ -39,12 +39,12 @@ export const EXAMPLE_USERNAME_MENTION = '@username';
|
||||
export const EXAMPLE_FLUXER_TAG_FULL = 'Username#0000';
|
||||
export const EXAMPLE_USERNAME = 'Username';
|
||||
export const VISIONARY_LIFETIME_BADGE_LABEL = 'Visionary #42';
|
||||
export const LINK_PREVIEW_EXAMPLE_URL = 'https://fluxer.app';
|
||||
export const LINK_PREVIEW_EXAMPLE_URL = 'https://fluxer.com';
|
||||
export const EXAMPLE_GIF_URLS = `${EXAMPLE_URL}/gif1.gif\n${EXAMPLE_URL}/gif2.gif`;
|
||||
export const THE_OTHER_PLATFORM_TEMPLATE_EXAMPLE_URL = `https://${THE_OTHER_PLATFORM.toLowerCase()}.new/abcd1234`;
|
||||
const DESKTOP_DOWNLOAD_URLS: Record<string, string> = {
|
||||
stable: 'https://fluxer.app/download',
|
||||
canary: 'https://canary.fluxer.app/download',
|
||||
stable: 'https://fluxer.com/download',
|
||||
canary: 'https://canary.fluxer.com/download',
|
||||
development: 'http://localhost:8088/download',
|
||||
};
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
import type {RuntimeConfigSnapshot} from '@app/features/app/state/RuntimeConfig';
|
||||
import {isDesktop} from '@app/features/ui/utils/NativeUtils';
|
||||
import {isOfficialInstanceHost} from '@fluxer/instance_bootstrap/src/OfficialInstance';
|
||||
|
||||
const DESKTOP_PASSKEY_RELYING_PARTIES: ReadonlyArray<string> = Object.freeze(['fluxer.app']);
|
||||
const DESKTOP_PASSKEY_RELYING_PARTIES: ReadonlyArray<string> = Object.freeze(['fluxer.app', 'fluxer.com']);
|
||||
|
||||
function hostFromEndpoint(endpoint: string | undefined): string | null {
|
||||
if (endpoint == null || endpoint.length === 0) {
|
||||
@@ -51,7 +52,10 @@ function isPasskeyAvailableForInstance({snapshot, currentHost, desktop}: Passkey
|
||||
if (desktop) {
|
||||
return DESKTOP_PASSKEY_RELYING_PARTIES.includes(relyingPartyId);
|
||||
}
|
||||
return isRelyingPartyAssertableFromHost(relyingPartyId, currentHost);
|
||||
return (
|
||||
(isOfficialInstanceHost(currentHost) && isOfficialInstanceHost(relyingPartyId)) ||
|
||||
isRelyingPartyAssertableFromHost(relyingPartyId, currentHost)
|
||||
);
|
||||
}
|
||||
|
||||
export function isPasskeyAvailableForCurrentClient(snapshot: RuntimeConfigSnapshot | null | undefined): boolean {
|
||||
|
||||
@@ -8,6 +8,7 @@ import {isInternalChannelHost} from '@app/features/navigation/utils/DeepLinkUtil
|
||||
import * as PlutoniumPageCommands from '@app/features/premium/commands/PlutoniumPageCommands';
|
||||
import {getPremiumProductFullName, shouldShowPremiumFeatures} from '@app/features/premium/utils/PremiumUtils';
|
||||
import {APP_PROTOCOL_SCHEME, isAppProtocolUrl} from '@app/features/ui/utils/AppProtocol';
|
||||
import {OFFICIAL_WEB_APP_HOSTS} from '@fluxer/instance_bootstrap/src/OfficialWebAppHosts';
|
||||
import type {I18n} from '@lingui/core';
|
||||
import {msg} from '@lingui/core/macro';
|
||||
import {AtomIcon, ChatsCircleIcon, CompassIcon, type Icon, StarIcon} from '@phosphor-icons/react';
|
||||
@@ -33,7 +34,7 @@ const APP_PAGES: ReadonlyArray<AppPageDefinition> = [
|
||||
{id: 'direct_messages', paths: [Routes.ME], icon: ChatsCircleIcon, appHostOnly: false},
|
||||
];
|
||||
|
||||
const OFFICIAL_WEB_APP_HOSTS = ['web.fluxer.app', 'web.canary.fluxer.app'];
|
||||
const OFFICIAL_APP_PAGE_HOSTS = new Set<string>(OFFICIAL_WEB_APP_HOSTS);
|
||||
|
||||
function normalizePath(pathname: string): string {
|
||||
const trimmed = pathname.length > 1 ? pathname.replace(/\/+$/, '') : pathname;
|
||||
@@ -50,7 +51,7 @@ function isWebAppHost(host: string): boolean {
|
||||
try {
|
||||
if (normalized === new URL(RuntimeConfig.webAppBaseUrl).host.toLowerCase()) return true;
|
||||
} catch {}
|
||||
return !RuntimeConfig.isSelfHosted() && OFFICIAL_WEB_APP_HOSTS.includes(normalized);
|
||||
return !RuntimeConfig.isSelfHosted() && OFFICIAL_APP_PAGE_HOSTS.has(normalized);
|
||||
}
|
||||
|
||||
function isPageAvailable(page: AppPageDefinition): boolean {
|
||||
|
||||
+3
-3
@@ -185,9 +185,9 @@ export const MarkdownTab: React.FC = observer(() => {
|
||||
{
|
||||
title: i18n._(LINKS_DESCRIPTOR),
|
||||
items: [
|
||||
{label: '[text](url)', content: '[Masked link](https://fluxer.app)'},
|
||||
{label: '<url>', content: '<https://fluxer.app>'},
|
||||
{label: 'url', content: 'https://fluxer.app'},
|
||||
{label: '[text](url)', content: '[Masked link](https://fluxer.com)'},
|
||||
{label: '<url>', content: '<https://fluxer.com>'},
|
||||
{label: 'url', content: 'https://fluxer.com'},
|
||||
{label: '<email>', content: '<[email protected]>'},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -153,8 +153,8 @@ LABEL org.opencontainers.image.title="fluxer-app-proxy"
|
||||
LABEL org.opencontainers.image.description="Fluxer web app and edge proxy"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -102,7 +102,9 @@ const FRAME_SOURCES: &[&str] = &[
|
||||
|
||||
const IMAGE_SOURCES: &[&str] = &[
|
||||
"https://*.fluxer.app",
|
||||
"https://*.fluxer.com",
|
||||
"https://fluxer.app",
|
||||
"https://fluxer.com",
|
||||
"https://i.ytimg.com",
|
||||
"https://*.youtube.com",
|
||||
"https://*.fluxer.media",
|
||||
@@ -111,7 +113,9 @@ const IMAGE_SOURCES: &[&str] = &[
|
||||
|
||||
const MEDIA_SOURCES: &[&str] = &[
|
||||
"https://*.fluxer.app",
|
||||
"https://*.fluxer.com",
|
||||
"https://fluxer.app",
|
||||
"https://fluxer.com",
|
||||
"https://*.youtube.com",
|
||||
"https://*.fluxer.media",
|
||||
"https://fluxer.media",
|
||||
@@ -133,7 +137,9 @@ const FONT_SOURCES: &[&str] = &[
|
||||
|
||||
const CONNECT_SOURCES: &[&str] = &[
|
||||
"https://*.fluxer.app",
|
||||
"https://*.fluxer.com",
|
||||
"wss://*.fluxer.app",
|
||||
"wss://*.fluxer.com",
|
||||
"https://*.fluxer.media",
|
||||
"wss://*.fluxer.media",
|
||||
"https://fluxer-uploads.ewr1.vultrobjects.com",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "fluxer_desktop",
|
||||
"version": "0.0.0",
|
||||
"description": "Instant messaging and VoIP application",
|
||||
"homepage": "https://fluxer.app",
|
||||
"homepage": "https://fluxer.com",
|
||||
"author": "Fluxer Platform AB <[email protected]>",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"private": true,
|
||||
|
||||
@@ -15,7 +15,7 @@ pkgver="${FLUXER_VERSION:?FLUXER_VERSION must be set}"
|
||||
pkgrel=1
|
||||
pkgdesc='Instant messaging and VoIP application'
|
||||
arch=('x86_64' 'aarch64')
|
||||
url='https://fluxer.app'
|
||||
url='https://fluxer.com'
|
||||
license=('AGPL-3.0-or-later')
|
||||
depends=(
|
||||
'alsa-lib'
|
||||
|
||||
@@ -48,9 +48,9 @@
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="bugtracker">https://feedback.fluxer.com</url>
|
||||
<url type="homepage">https://fluxer.app</url>
|
||||
<url type="donation">https://fluxer.app/donate</url>
|
||||
<url type="contact">https://fluxer.app/company-information#contact</url>
|
||||
<url type="homepage">https://fluxer.com</url>
|
||||
<url type="donation">https://fluxer.com/donate</url>
|
||||
<url type="contact">https://fluxer.com/company-information#contact</url>
|
||||
<url type="translate">https://weblate.fluxer.tools/</url>
|
||||
<url type="vcs-browser">https://github.com/fluxerapp/fluxer.git</url>
|
||||
<update_contact>[email protected]</update_contact>
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="bugtracker">https://feedback.fluxer.com</url>
|
||||
<url type="homepage">https://canary.fluxer.app</url>
|
||||
<url type="donation">https://fluxer.app/donate</url>
|
||||
<url type="homepage">https://canary.fluxer.com</url>
|
||||
<url type="donation">https://fluxer.com/donate</url>
|
||||
<url type="vcs-browser">https://github.com/fluxerapp/fluxer.git</url>
|
||||
<update_contact>[email protected]</update_contact>
|
||||
<provides>
|
||||
|
||||
@@ -24,8 +24,8 @@ export const CHANNEL_APP_URLS: Record<BuildChannel, string> = {
|
||||
};
|
||||
export const LOCAL_DEVELOPMENT_INSTANCE_URL = BUILD_CHANNEL === 'development' ? DEVELOPMENT_APP_URL : null;
|
||||
export const DOWNLOAD_PAGE_URLS: Record<BuildChannel, string> = {
|
||||
stable: 'https://fluxer.app/download',
|
||||
canary: 'https://canary.fluxer.app/download',
|
||||
stable: 'https://fluxer.com/download',
|
||||
canary: 'https://canary.fluxer.com/download',
|
||||
development: 'http://localhost:8088/download',
|
||||
};
|
||||
export const STABLE_MIGRATED_APP_ORIGIN = 'https://fluxer.com';
|
||||
|
||||
@@ -214,7 +214,7 @@ function buildTemplate(): Array<MenuItemConstructorOptions> {
|
||||
{
|
||||
label: t('desktop.appMenu.website'),
|
||||
click: async () => {
|
||||
await openExternalDeduped('https://fluxer.app');
|
||||
await openExternalDeduped('https://fluxer.com');
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV FLUXER_DOCS_ENDPOINT=https://docs.fluxer.app
|
||||
ENV FLUXER_DOCS_ENDPOINT=https://docs.fluxer.com
|
||||
ENV FLUXER_DOCS_SEARCH_INDEXING=true
|
||||
|
||||
COPY . .
|
||||
@@ -46,8 +46,8 @@ LABEL org.opencontainers.image.title="fluxer-docs"
|
||||
LABEL org.opencontainers.image.description="Fluxer API and protocol reference"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
@@ -64,7 +64,7 @@ ENV NODE_ENV=production
|
||||
ENV NODE_OPTIONS="--enable-source-maps"
|
||||
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
|
||||
ENV BUILD_VERSION=${BUILD_VERSION}
|
||||
ENV FLUXER_DOCS_ENDPOINT=https://docs.fluxer.app
|
||||
ENV FLUXER_DOCS_ENDPOINT=https://docs.fluxer.com
|
||||
ENV FLUXER_DOCS_SEARCH_INDEXING=true
|
||||
|
||||
USER 65532:65532
|
||||
|
||||
@@ -64,7 +64,7 @@ Not every parameter starts a [transformation](/media-proxy/transformations/#when
|
||||
|
||||
Returns a third-party file through Fluxer, optionally transformed. The HTTP API returns these URLs in `proxy_url` on [embed media](/http-api/messages/#embed-media-object), `proxy_icon_url` on [embed authors](/http-api/messages/#embed-author-object) and [footers](/http-api/messages/#embed-footer-object), and `proxy_url` and `proxy_src` on [GIF results](/http-api/memes/#resolved-gif-entry-object). Use each URL exactly as the API returns it, and don't build `/external/` paths yourself.
|
||||
|
||||
The signature covers only the target and works until `FLUXER_MEDIA_PROXY_SECRET_KEY` changes. Fluxer fetches the target with the user agent `Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.app)` and follows at most five redirects to public `http` or `https` addresses.
|
||||
The signature covers only the target and works until `FLUXER_MEDIA_PROXY_SECRET_KEY` changes. Fluxer fetches the target with the user agent `Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.com)` and follows at most five redirects to public `http` or `https` addresses.
|
||||
|
||||
### Query parameters
|
||||
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ rexctl admins remove <user>
|
||||
|
||||
### rexctl admins sign-in-link
|
||||
|
||||
Print a link that signs an admin in once. Use it to get in when Require SSO is on and your sign-in provider is down or set up wrong. See https://docs.fluxer.app/operator/sign-in/#single-sign-on.
|
||||
Print a link that signs an admin in once. Use it to get in when Require SSO is on and your sign-in provider is down or set up wrong. See https://docs.fluxer.com/operator/sign-in/#single-sign-on.
|
||||
|
||||
```sh
|
||||
rexctl admins sign-in-link <user>
|
||||
|
||||
@@ -24,7 +24,7 @@ export const HTTPHeader = Object.freeze({
|
||||
X_FRAME_OPTIONS: 'X-Frame-Options',
|
||||
} as const);
|
||||
|
||||
export const OUTBOUND_USER_AGENT = 'Fluxer (https://fluxer.app)';
|
||||
export const OUTBOUND_USER_AGENT = 'Fluxer (https://fluxer.com)';
|
||||
|
||||
export const CanonicalNetworkProtocol = Object.freeze({
|
||||
HTTP: 'http:',
|
||||
|
||||
@@ -40,8 +40,8 @@ LABEL org.opencontainers.image.title="fluxer-gateway"
|
||||
LABEL org.opencontainers.image.description="Fluxer realtime gateway"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-gifs"
|
||||
LABEL org.opencontainers.image.description="Fluxer GIF search and proxy service"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -21,7 +21,7 @@ const KLIPY_RESPONSE_LIMIT_BYTES: usize = 512 * 1024;
|
||||
const MAX_FEATURED_CATEGORIES: usize = 50;
|
||||
const FEATURED_CATEGORY_PREVIEW_CONCURRENCY: usize = 10;
|
||||
const FEATURED_CATEGORIES_FETCH_TIMEOUT: Duration = Duration::from_secs(30);
|
||||
const FLUXER_USER_AGENT: &str = "Fluxerbot/1.0 (+https://fluxer.app)";
|
||||
const FLUXER_USER_AGENT: &str = "Fluxerbot/1.0 (+https://fluxer.com)";
|
||||
const KLIPY_PROVIDER_NAME: &str = "klipy";
|
||||
const KLIPY_FEATURED_CATEGORY_REFRESH_COUNTRY: &str = "US";
|
||||
const UNRESOLVABLE_CACHE_KEY: &str = "unresolvable";
|
||||
|
||||
@@ -57,8 +57,8 @@ LABEL org.opencontainers.image.title="fluxer-media-proxy"
|
||||
LABEL org.opencontainers.image.description="High-throughput media transcoding proxy: libvips + libavformat + libcurl"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -5,7 +5,7 @@ pub const DESKTOP_APP_ORIGIN: &str = "fluxer-app://app";
|
||||
pub(crate) const OPERATOR_WALL_PATH_PREFIX: &str = "/operator-wall/";
|
||||
|
||||
pub const OUTBOUND_USER_AGENT: &str =
|
||||
"Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.app)";
|
||||
"Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.com)";
|
||||
pub const MAX_MEDIA_IMAGE_DIMENSION_DEFAULT: u32 = 16_384;
|
||||
pub const MAX_MEDIA_IMAGE_PIXELS_DEFAULT: usize =
|
||||
MAX_MEDIA_IMAGE_DIMENSION_DEFAULT as usize * MAX_MEDIA_IMAGE_DIMENSION_DEFAULT as usize;
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-messages"
|
||||
LABEL org.opencontainers.image.description="Fluxer message storage service"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-push"
|
||||
LABEL org.opencontainers.image.description="Fluxer push notification delivery service and push relay"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -29,7 +29,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
docsURL = "https://docs.fluxer.app/operator/"
|
||||
docsURL = "https://docs.fluxer.com/operator/"
|
||||
changeHowFluxerRunsURL = docsURL + "running/#change-how-fluxer-runs"
|
||||
)
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-snowflakes"
|
||||
LABEL org.opencontainers.image.description="Fluxer snowflake ID service"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -19,7 +19,7 @@ LABEL org.opencontainers.image.title="fluxer-static"
|
||||
LABEL org.opencontainers.image.description="Self-hostable static asset bundle for Fluxer"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later AND CC-BY-SA-4.0 AND CC-BY-4.0"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-unfurl"
|
||||
LABEL org.opencontainers.image.description="Fluxer link unfurl and embed service"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -226,7 +226,7 @@ fn build_l2_cache(
|
||||
|
||||
fn base_http_client_builder() -> reqwest::ClientBuilder {
|
||||
reqwest::Client::builder()
|
||||
.user_agent("Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.app)")
|
||||
.user_agent("Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.com)")
|
||||
.timeout(Duration::from_secs(10))
|
||||
.redirect(reqwest::redirect::Policy::none())
|
||||
.no_gzip()
|
||||
|
||||
@@ -18,8 +18,8 @@ LABEL org.opencontainers.image.title="fluxer-users"
|
||||
LABEL org.opencontainers.image.description="Fluxer user storage service"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.vendor="Fluxer"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.app"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.app"
|
||||
LABEL org.opencontainers.image.url="https://fluxer.com"
|
||||
LABEL org.opencontainers.image.documentation="https://docs.fluxer.com"
|
||||
LABEL org.opencontainers.image.source="https://github.com/fluxerapp/fluxer"
|
||||
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
|
||||
LABEL org.opencontainers.image.revision="${SOURCE_SHA}"
|
||||
|
||||
@@ -30,6 +30,7 @@ const DEFAULT_PASSKEY_ORIGINS = [
|
||||
'https://fluxer.com',
|
||||
'https://canary.fluxer.com',
|
||||
'android:apk-key-hash:keSY4bimyLqZQV7bKXgpa2xYuqXi0qZJzsYtp6gpx7w',
|
||||
'android:apk-key-hash:Ld4qnT0TfBeHMT3Yu2H0WTwqlxgFs-32uDmwqtLndsk',
|
||||
];
|
||||
|
||||
function defaultConfig(): MasterConfig {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
export const FLUXER_EPOCH = 1420070400000;
|
||||
export const FLUXER_USER_AGENT = 'Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.app)';
|
||||
export const FLUXER_USER_AGENT = 'Mozilla/5.0 (compatible; Fluxerbot/1.0; +https://fluxer.com)';
|
||||
export const ADMIN_OAUTH2_APPLICATION_ID = 1234567890123456789n;
|
||||
export const URL_REGEX = /https?:\/\/[^\s/$.?#].[^\s]*/g;
|
||||
export const DeletionReasons = {
|
||||
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
|
||||
export const OFFICIAL_INSTANCE_NAME = 'Fluxer';
|
||||
|
||||
export const OFFICIAL_INSTANCE_DISPLAY_HOST = 'fluxer.app';
|
||||
export const OFFICIAL_INSTANCE_DISPLAY_HOST = 'fluxer.com';
|
||||
|
||||
export const OFFICIAL_INSTANCE_DISPLAY_NAME = 'Fluxer.app';
|
||||
export const OFFICIAL_INSTANCE_DISPLAY_NAME = 'fluxer.com';
|
||||
|
||||
export const OFFICIAL_STABLE_MARKETING_ORIGIN = `https://${OFFICIAL_INSTANCE_DISPLAY_HOST}`;
|
||||
|
||||
@@ -23,7 +23,7 @@ export type OfficialReleaseChannel = keyof typeof OFFICIAL_CLIENT_API_ENDPOINTS;
|
||||
|
||||
export const OFFICIAL_MARKETING_ORIGINS = Object.freeze({
|
||||
stable: OFFICIAL_STABLE_MARKETING_ORIGIN,
|
||||
canary: 'https://canary.fluxer.app',
|
||||
canary: 'https://canary.fluxer.com',
|
||||
} as const) satisfies Record<OfficialReleaseChannel, string>;
|
||||
|
||||
export function officialMarketingOrigin(releaseChannel: string | null | undefined): string {
|
||||
@@ -67,12 +67,12 @@ export function officialClientApiEndpointForAlias(apiEndpoint: string): string |
|
||||
|
||||
export const OFFICIAL_INSTANCE_HOSTS: ReadonlyArray<string> = Object.freeze([
|
||||
OFFICIAL_INSTANCE_DISPLAY_HOST,
|
||||
'fluxer.app',
|
||||
'web.fluxer.app',
|
||||
'api.fluxer.app',
|
||||
'canary.fluxer.app',
|
||||
'web.canary.fluxer.app',
|
||||
'api.canary.fluxer.app',
|
||||
'fluxer.com',
|
||||
'canary.fluxer.com',
|
||||
]);
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ pub fn public_url_env(public_url: &str) -> Result<Vec<(String, String)>> {
|
||||
(
|
||||
"FLUXER_MARKETING_ENDPOINT".to_owned(),
|
||||
std::env::var("FLUXER_MARKETING_ENDPOINT")
|
||||
.unwrap_or_else(|_| "https://fluxer.app".to_owned()),
|
||||
.unwrap_or_else(|_| "https://fluxer.com".to_owned()),
|
||||
),
|
||||
(
|
||||
"FLUXER_MEDIA_PROXY_PUBLIC_ENDPOINT".to_owned(),
|
||||
|
||||
Reference in new issue
Block a user