Merge pull request #2450 from PineappleIOnic/Add-DNS-Warning-Install
Add a DNS warning during install
This commit is contained in:
commit
88a77127ea
2 changed files with 11 additions and 1 deletions
|
@ -68,7 +68,7 @@ return [
|
||||||
'default' => 'localhost',
|
'default' => 'localhost',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.' . PHP_EOL . 'You can use the same value as used for the Appwrite hostname.',
|
'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.' . PHP_EOL . 'You can use the same value as used for the Appwrite hostname.',
|
||||||
'filter' => ''
|
'filter' => 'domainTarget'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => '_APP_CONSOLE_WHITELIST_ROOT',
|
'name' => '_APP_CONSOLE_WHITELIST_ROOT',
|
||||||
|
|
|
@ -173,6 +173,16 @@ $cli
|
||||||
if (empty($input[$var['name']])) {
|
if (empty($input[$var['name']])) {
|
||||||
$input[$var['name']] = $var['default'];
|
$input[$var['name']] = $var['default'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($var['filter'] === 'domainTarget') {
|
||||||
|
if ($input[$var['name']] !== 'localhost') {
|
||||||
|
Console::warning("\nIf you haven't already done so, set the following record for {$input[$var['name']]} on your DNS provider:\n");
|
||||||
|
$mask = "%-15.15s %-10.10s %-30.30s\n";
|
||||||
|
printf($mask, "Type", "Name", "Value");
|
||||||
|
printf($mask, "A or AAAA", "@", "<YOUR PUBLIC IP>");
|
||||||
|
Console::warning("\nUse 'AAAA' if you're using an IPv6 address and 'A' if you're using an IPv4 address.\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$templateForCompose = new View(__DIR__ . '/../views/install/compose.phtml');
|
$templateForCompose = new View(__DIR__ . '/../views/install/compose.phtml');
|
||||||
|
|
Loading…
Reference in a new issue