diff --git a/app/Models/Node.php b/app/Models/Node.php index 99ddf5b3b..e8a260be8 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -138,7 +138,7 @@ class Node extends Model 'behind_proxy' => false, 'memory_overallocate' => 0, 'disk_overallocate' => 0, - 'daemonBase' => '/srv/daemon-data', + 'daemonBase' => '/var/lib/pterodactyl/volumes', 'daemonSFTP' => 2022, 'daemonListen' => 8080, 'maintenance_mode' => false, @@ -178,34 +178,10 @@ class Node extends Model ], 'system' => [ 'data' => $this->daemonBase, - 'archive_directory' => $this->daemonBase . '/.archives', - 'username' => 'pterodactyl', - 'set_permissions_on_boot' => true, - 'detect_clean_exit_as_crash' => false, 'sftp' => [ - 'use_internal' => true, - 'disable_disk_checking' => false, - 'bind_address' => '0.0.0.0', 'bind_port' => $this->daemonSFTP, - 'read_only' => false, ], ], - 'docker' => [ - 'network' => [ - 'interface' => '172.18.0.1', - 'name' => 'pterodactyl_nw', - 'driver' => 'bridge', - ], - 'update_images' => true, - 'socket' => '/var/run/docker.sock', - ], - 'disk_check_timeout' => 30, - 'throttles' => [ - 'kill_at_count' => 5, - 'decay' => 10, - 'bytes' => 4096, - 'check_interval' => 100, - ], 'remote' => route('index'), ]; } diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 93fbac555..b55a92804 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -98,7 +98,7 @@ $factory->define(Pterodactyl\Models\Node::class, function (Faker $faker) { 'daemon_token' => Str::random(Node::DAEMON_TOKEN_LENGTH), 'daemonListen' => 8080, 'daemonSFTP' => 2022, - 'daemonBase' => '/srv/daemon-data', + 'daemonBase' => '/var/lib/pterodactyl/volumes', ]; }); diff --git a/resources/views/admin/nodes/new.blade.php b/resources/views/admin/nodes/new.blade.php index eff033265..1dcdca7c9 100644 --- a/resources/views/admin/nodes/new.blade.php +++ b/resources/views/admin/nodes/new.blade.php @@ -108,7 +108,7 @@
Enter the directory where server files should be stored. If you use OVH you should check your partition scheme. You may need to use /home/daemon-data
to have enough space.
{{ $node->getYamlConfiguration() }}
To auto-configure your node run the following command:cd /srv/wings && ./wings configure --panel-url {{ config('app.url') }} --token ' + data.token + ' --node ' + data.node + '{{ config('app.debug') ? ' --allow-insecure' : '' }}
To auto-configure your node run the following command:cd /etc/pterodactyl && ./wings configure --panel-url {{ config('app.url') }} --token ' + data.token + ' --node ' + data.node + '{{ config('app.debug') ? ' --allow-insecure' : '' }}