🚀 Feature: Self-hosted multi-region console (region picker + runtime regions catalog)
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、既存のリージョンピッカー、作成/オンボーディングフロー、プロジェクトカード、および issue で参照されている getApiEndpoint/getProjectEndpoint ヘルパーを追跡します。アプローチを選ぶ前に、提案されている実行時リージョンカタログ /console/regions と、issue #12964 のバックエンド依存関係を確認します。self-hosted のマルチリージョン運用者が変化するリージョンデータを読み込み、リージョンを選択し、プロジェクト一覧でそのリージョンを確認し、設定されたリージョン別エンドポイントを使用できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
🔖 Feature description
Console already has Cloud multi-region UX (region catalog, create/onboarding region, regional API endpoint helpers, org project region badges). Almost all of that is gated on Cloud (isCloud / PUBLIC_CONSOLE_MODE=cloud).
Self-hosted operators running a meta API plus regional APIs cannot use that UI today: no region picker, create/onboarding omits region, and there is no supported way to load a region catalog or map a project’s region to an API host without Cloud’s organizations.listRegions / Cloud subdomain conventions.
🎤 Pitch
Once the backend can run meta + regional stacks (https://github.com/appwrite/appwrite/issues/12964), the console must:
- Load a self-hosted region catalog at runtime (no rebuild when regions change)
- Let operators pick a region when creating projects (create modal + onboarding)
- Route SDK/API calls using an explicit optional hostname/endpoint per region
- Show region on org project lists
Without this, self-hosted multi-region only works via raw API and is unusable for normal console workflows.
👍 Solution / proposed scope
Discuss and (if accepted) implement:
-
isMultiRegion(or equivalent) — e.g.PUBLIC_APPWRITE_MULTI_REGION=trueand/or a console variable from the API (_APP_SUPPORTS_MULTI_REGION), not Cloud-only. -
Runtime region catalog — serve a static JSON file from the console nginx image, e.g.
GET /console/regions, so Helm/compose can mount a ConfigMap/volume without rebuilding the SPA. Shape should mirror the API catalog idea ($id,name, availability flags) plus optional routing fields:hostname→{page-protocol}//{hostname}/v1endpoint→ full API base (with or without/v1)- Example:
{ "$id": "fra", "name": "Frankfurt", "disabled": false, "available": true, "hostname": "fra.example.com" } - If neither
hostnamenorendpointis set, keep existing Cloud subdomain behavior as fallback (or same-origin).
-
Create + onboarding — when multi-region is on, show the region picker and send
regionon project create. Prefer the self-hosted create modal, not the Cloud wizard (Cloud path can coalesce region todefault). -
Org UI — show region name on project cards when multi-region is enabled (same presentation as Cloud).
-
Align
getApiEndpoint/getProjectEndpoint/ copy-display URLs with the catalog overrides.
We prototyped this in a Helm/nginx setup (ConfigMap-mounted /console/regions). Happy to adjust to whatever maintainers prefer (API-served catalog vs static file) as long as it stays runtime-configurable and host-explicit.
Depends on / coordinated with backend multi-region: https://github.com/appwrite/appwrite/issues/12964
👀 Have you spent some time to check if this issue has been raised before?
- I checked; existing console region work targets Cloud subdomain routing / Cloud APIs, not self-hosted multi-region UX with a runtime catalog.
🏢 Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines (https://github.com/appwrite/console/blob/main/CONTRIBUTING.md) (open an issue explaining the idea before a PR; discuss fit with roadmap).
- 主要言語
- Svelte
- スター
- 393
- フォーク
- 261
- 平均マージ
- 26分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
awslabs/agentcore-samples#2180 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Category: OneSwap Status: Pending
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenNebula/one#8170 ·