-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat: multiple app domains #10911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: multiple app domains #10911
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
|
|
||
| use Utopia\System\System; | ||
|
|
||
| /** | ||
| * Platform configuration | ||
| */ | ||
| return [ | ||
| 'domain' => System::getEnv('_APP_DOMAIN', 'localhost'), | ||
| 'consoleDomain' => System::getEnv('_APP_CONSOLE_DOMAIN', System::getEnv('_APP_DOMAIN', 'localhost')), | ||
|
Comment on lines
+9
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's examine app/config/platform.php to see the full context around line 20
cat -n app/config/platform.php | head -30Repository: appwrite/appwrite Length of output: 879 🏁 Script executed: # Search for APP_DOMAIN constant definition
rg "define.*APP_DOMAIN" --type php -B 2 -A 2Repository: appwrite/appwrite Length of output: 43 🏁 Script executed: # Search for how APP_DOMAIN is used in app/init.php or initialization files
fd "init.php" --type f | head -5Repository: appwrite/appwrite Length of output: 73 🏁 Script executed: # Search for _APP_DOMAIN processing in the codebase
rg "_APP_DOMAIN" --type php | head -20Repository: appwrite/appwrite Length of output: 2512 🏁 Script executed: # Search for APP_DOMAIN definition in app/init.php
rg "APP_DOMAIN" app/init.php -B 3 -A 3Repository: appwrite/appwrite Length of output: 43 🏁 Script executed: # Also search for any processing of _APP_DOMAIN that might extract first domain
rg "explode|split|preg_split" app/init.php | grep -i domainRepository: appwrite/appwrite Length of output: 43 🏁 Script executed: # Search entire PHP codebase for APP_DOMAIN definition/constant
rg "APP_DOMAIN" --type php -B 2 -A 2 | head -50Repository: appwrite/appwrite Length of output: 3898 🏁 Script executed: # Check if APP_DOMAIN might be defined as a constant in multiple files
rg "define.*'APP_DOMAIN'|const.*APP_DOMAIN|APP_DOMAIN\s*=" --type phpRepository: appwrite/appwrite Length of output: 117 🏁 Script executed: # Check the app/init/constants.php file to see all constant definitions and context
cat -n app/init/constants.php | head -50Repository: appwrite/appwrite Length of output: 3015 🏁 Script executed: # Search for documentation or comments about _APP_DOMAIN multi-domain handling
rg "_APP_DOMAIN" --type php -B 3 -A 1 app/init | head -30Repository: appwrite/appwrite Length of output: 429 Line 20 uses hardcoded Lines 9–10 correctly read from the 🤖 Prompt for AI Agents |
||
| 'platformName' => APP_EMAIL_PLATFORM_NAME, | ||
| 'logoUrl' => APP_EMAIL_LOGO_URL, | ||
| 'accentColor' => APP_EMAIL_ACCENT_COLOR, | ||
| 'footerImageUrl' => APP_EMAIL_FOOTER_IMAGE_URL, | ||
| 'twitterUrl' => APP_SOCIAL_TWITTER, | ||
| 'discordUrl' => APP_SOCIAL_DISCORD, | ||
| 'githubUrl' => APP_SOCIAL_GITHUB, | ||
| 'termsUrl' => APP_EMAIL_TERMS_URL, | ||
| 'privacyUrl' => APP_EMAIL_PRIVACY_URL, | ||
| 'websiteUrl' => 'https://' . APP_DOMAIN, | ||
| ]; | ||
|
loks0n marked this conversation as resolved.
|
||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.