Skip to content

feat: unified URL resolution with 5-level fallback chain and multi-tenant subdomain support#336

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/unified-url-resolution
Open

feat: unified URL resolution with 5-level fallback chain and multi-tenant subdomain support#336
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/unified-url-resolution

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • New domain.py: resolve_base_url() with 5-level fallback (tenant sso_domain → subdomain_prefix → DB setting → ENV → request)
  • Enhanced platform_service.py: added DB system_settings lookup
  • Tenant model: added subdomain_prefix and is_default fields + alembic migrations
  • New API endpoints: check-prefix, enhanced resolve-by-domain with default tenant fallback
  • Frontend: Public Base URL config in Platform Settings (with i18n zh/en)

Test plan

  • check-prefix: available/reserved correctly
  • resolve-by-domain: returns default tenant with new fields
  • system-settings read/write
  • alembic migration chain verified
  • Frontend: i18n "公开访问地址" confirmed

…nant subdomain support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant