1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 23:14:29 +02:00

Use reserved TLD for default dev hostname

See https://jdebp.eu/FGA/dns-use-domain-names-that-you-own.html.
This commit is contained in:
Franz Liedke
2020-09-27 22:55:46 +02:00
parent 65766a8386
commit 6860b24b70
3 changed files with 14 additions and 14 deletions

View File

@@ -44,7 +44,7 @@ class FileDataProvider implements DataProviderInterface
// Define configuration variables
$this->debug = $configuration['debug'] ?? false;
$this->baseUrl = $configuration['baseUrl'] ?? 'http://flarum.local';
$this->baseUrl = $configuration['baseUrl'] ?? 'http://flarum.localhost';
$this->databaseConfiguration = $configuration['databaseConfiguration'] ?? [];
$this->adminUser = $configuration['adminUser'] ?? [];
$this->settings = $configuration['settings'] ?? [];

View File

@@ -69,7 +69,7 @@ class UserDataProvider implements DataProviderInterface
private function getBaseUrl(): BaseUrl
{
$baseUrl = $this->ask('Base URL (Default: http://flarum.local):', 'http://flarum.local');
$baseUrl = $this->ask('Base URL (Default: http://flarum.localhost):', 'http://flarum.localhost');
return $this->baseUrl = BaseUrl::fromString($baseUrl);
}