{# Copyright 2025, 2026 Element Creations Ltd. Copyright 2024, 2025 New Vector Ltd. Copyright 2023, 2024 The Matrix.org Foundation C.I.C. SPDX-License-Identifier: AGPL-3.0-only SPDX-FileCopyrightText: 2026 Ahania -#} {# ═══ Licensing: Ahania relies on the AGPL branch ════════════════════════════ Upstream matrix-authentication-service is offered by Element under either the GNU Affero General Public License v3.0 only, or a paid-for Element Commercial License. Ahania holds no Element Commercial License, so Ahania receives and uses this file under AGPL-3.0-only. The dual offer remains Element's; the single identifier above is Ahania's elected branch for this copy, and it is not a claim that the commercial branch is unavailable to anyone else. Upstream copyright stands as written above and is never replaced. The Ahania copyright line covers only the modification described below. MODIFIED BY AHANIA on 2026-07-08 (AGPL-3.0 section 5(a) notice): the shared ChatPVT brand header injected above the account SPA shell. Licence text: LICENSES/AGPL-3.0-only.txt in this repository. Corresponding Source for the deployed modified version, including this file: https://source.ahania.com/chatpvt/mas/1.23.0/ ════════════════════════════════════════════════════════════════════════════ -#} {# Must be kept in sync with frontend/index.html #} {# ═══ Ahania stack-owned override (operator ruling 2026-07-08) ═══════════════ This is the STOCK matrix-authentication-service v1.23.0 templates/app.html with ONE addition: the shared ChatPVT brand header (, the Cinny/DD-CINNY-10 pattern) injected above the account SPA, so auth1.chatpvt.com/account/ carries the same brand band as every other ChatPVT surface (OPP-CHATPVT-16, widened to the whole account app shell). Delivery: Docker Swarm config `chatpvt_synapse1_mas_app_template` mounted over /usr/local/share/mas-cli/templates/app.html (the loader walks the stock dir and picks this file up; every other template stays stock). MAINTENANCE DUTIES - MAS upgrades: this file is pinned to the v1.23.0 template. On every MAS_VERSION bump, re-diff against the new tag's templates/app.html and re-apply the injection (the file "must be kept in sync with frontend/index.html"). - Brand-header bumps: the pinned CDN URL below follows the SAME two-step bump procedure as the Cinny pin (confirm the new hashed URL via https://cdn.chatpvt.com/manifest.json, edit here, re-create the Swarm config, redeploy chatpvt_synapse1). Keep it in lockstep with cinny-proxy.conf's pin. - The header self-hydrates via GET account.chatpvt.com/api/v1/whoami: auth.chatpvt.com + auth1.chatpvt.com must stay in the account stack's NUXT_WHOAMI_CORS_ORIGINS allowlist. ════════════════════════════════════════════════════════════════════════════ -#} {% set _ = translator(lang) %} {{ _("app.name") }} {{ include_asset('src/entrypoints/main.tsx') | indent(4) | safe }} {# Pre-load the locale data for the current language #} {{ include_asset('locales/' ~ lang ~ '.json') | indent(4) | safe }}
{# AGPL-3.0 section 13: this is a modified version of matrix-authentication-service and remote users must be offered its Corresponding Source. The link is deliberately in the ordinary footer flow rather than hidden in markup or an admin page, and the target is Ahania's own archive including the Ahania modifications, not upstream. The version segment tracks MAS_VERSION in portainer.env; a bump moves the deployed version and the published source together, which validate-mas-agpl-source.py enforces. -#}

Source code