Mail routing parent/children, domain name validation, nodelist import changes and other fixes
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
use App\Models\Software;
|
||||
use App\Models\{Domain,Software,System,Zone};
|
||||
|
||||
class InitialSetupSeeder extends Seeder
|
||||
{
|
||||
@@ -32,65 +33,49 @@ class InitialSetupSeeder extends Seeder
|
||||
'type'=>Software::SOFTWARE_MAILER,
|
||||
]);
|
||||
|
||||
DB::table('domains')->insert([
|
||||
$so = new System;
|
||||
$so->forceFill([
|
||||
'name'=>'Clearing Houz - Dev',
|
||||
'sysop'=>'System Sysop',
|
||||
'location'=>'Melbourne, AU',
|
||||
'active'=>TRUE,
|
||||
]);
|
||||
$so->save();
|
||||
|
||||
$do = new Domain;
|
||||
$do->forceFill([
|
||||
'name'=>'private',
|
||||
'default'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'public'=>TRUE,
|
||||
'notes'=>'PrivateNet: Internal Testing Network'
|
||||
]);
|
||||
$do->save();
|
||||
|
||||
DB::table('zones')->insert([
|
||||
$zo = new Zone;
|
||||
$zo->forceFill([
|
||||
'zone_id'=>'10',
|
||||
'domain_id'=>1,
|
||||
'active'=>TRUE,
|
||||
'system_id'=>$so->id,
|
||||
]);
|
||||
|
||||
DB::table('nodes')->insert([
|
||||
'zone_id'=>'1',
|
||||
'host_id'=>'999',
|
||||
'node_id'=>'2',
|
||||
'is_host'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'system'=>'FTN Clearing House Dev',
|
||||
'sysop'=>'Deon George',
|
||||
'location'=>'Parkdale, AUS',
|
||||
'email'=>'deon@leenooks.net',
|
||||
'address'=>'10.1.3.165',
|
||||
'port'=>24554,
|
||||
'protocol_id'=>1,
|
||||
'software_id'=>1,
|
||||
]);
|
||||
|
||||
DB::table('nodes')->insert([
|
||||
'zone_id'=>'1',
|
||||
'host_id'=>'999',
|
||||
'node_id'=>'1',
|
||||
'is_host'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'system'=>'Alterant MailHUB DEV',
|
||||
'sysop'=>'Deon George',
|
||||
'location'=>'Parkdale, AUS',
|
||||
'email'=>'deon@leenooks.net',
|
||||
'address'=>'d-1-4.ipv4.leenooks.vpn',
|
||||
'port'=>14554,
|
||||
'sespass'=>'PASSWORD',
|
||||
'protocol_id'=>1,
|
||||
'software_id'=>1,
|
||||
]);
|
||||
$do->zones()->save($zo);
|
||||
|
||||
DB::table('setups')->insert([
|
||||
'opt_md'=>'1',
|
||||
]);
|
||||
|
||||
DB::table('node_setup')->insert([
|
||||
'node_id'=>'1',
|
||||
'setup_id'=>'1',
|
||||
'system_id'=>$so->id,
|
||||
'zmodem'=>0,
|
||||
'emsi_protocols'=>0,
|
||||
'binkp'=>0,
|
||||
'protocols'=>0,
|
||||
'permissions'=>0,
|
||||
'options'=>0,
|
||||
]);
|
||||
|
||||
DB::table('users')->insert([
|
||||
'name'=>'Deon George',
|
||||
'email'=>'deon@leenooks.net',
|
||||
'email_verified_at'=>Carbon::now(),
|
||||
'admin'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'password'=>'$2y$10$bJQDLfxnKrh6o5Sa02MZOukXcLTNQiByXSTJ7fTr.kHMpV2wxbG6.',
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user