forked from Alex/Pterodactyl-Panel
parent
e39c750563
commit
777e7138e6
@ -12,9 +12,11 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||
### Changed
|
||||
* File uploads now account for a maximum file size that is assigned for the daemon, and gives cleaner errors when that limit is reached.
|
||||
* File upload limit can now be controlled from the panel.
|
||||
* Updates regex and default values for some Minecraft services to reflect current technology.
|
||||
|
||||
### Fixed
|
||||
* Fixes potential for generated password to not meet own validation requirements.
|
||||
* Fixes some regex checking issues with newer versions of Minecraft.
|
||||
|
||||
## v0.5.3 (Bodacious Boreopterus)
|
||||
### Fixed
|
||||
|
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CorrectServiceVariables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::transaction(function () {
|
||||
// Modify Default Spigot Startup Line
|
||||
DB::table('service_options')->where([
|
||||
['name', 'Spigot'],
|
||||
['tag', 'spigot'],
|
||||
['startup', '-Xms128M -Xmx{{SERVER_MEMORY}}M -Djline.terminal=jline.UnsupportedTerminal -jar {{SERVER_JARFILE}}'],
|
||||
])->update([
|
||||
'startup' => null,
|
||||
]);
|
||||
|
||||
// Correct Spigot Version Checking
|
||||
DB::table('service_variables')->where([
|
||||
['name', 'Spigot Version'],
|
||||
['env_variable', 'DL_VERSION'],
|
||||
['default_value', 'latest'],
|
||||
['regex', '/^(latest|[a-zA-Z0-9_\.-]{5,6})$/'],
|
||||
])->update([
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{3,7})$/',
|
||||
]);
|
||||
|
||||
// Correct Vanilla Version Checking (as well as naming)
|
||||
DB::table('service_variables')->where([
|
||||
['name', 'Server Jar File'],
|
||||
['env_variable', 'VANILLA_VERSION'],
|
||||
['default_value', 'latest'],
|
||||
['regex', '/^(latest|[a-zA-Z0-9_\.-]{5,6})$/']
|
||||
])->update([
|
||||
'name' => 'Server Version',
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{3,7})$/',
|
||||
]);
|
||||
|
||||
// Update Sponge Version Checking and Update Default Version
|
||||
DB::table('service_variables')->where([
|
||||
['name', 'Sponge Version'],
|
||||
['env_variable', 'SPONGE_VERSION'],
|
||||
['default_value', '1.8.9-4.2.0-BETA-351'],
|
||||
['regex', '/^(.*)$/'],
|
||||
])->update([
|
||||
'default_value' => '1.10.2-5.1.0-BETA-359',
|
||||
'regex' => '/^([a-zA-Z0-9.\-_]+)$/',
|
||||
]);
|
||||
|
||||
// Update Bungeecord Version Checking
|
||||
DB::table('service_variables')->where([
|
||||
['name', 'Bungeecord Version'],
|
||||
['env_variable', 'BUNGEE_VERSION'],
|
||||
['default_value', 'latest'],
|
||||
['regex', '/^(latest|[\d]{3,5})$/'],
|
||||
])->update([
|
||||
'regex' => '/^(latest|[\d]{1,6})$/',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
}
|
@ -84,7 +84,7 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||
'tag' => 'spigot',
|
||||
'docker_image' => 'quay.io/pterodactyl/minecraft:spigot',
|
||||
'executable' => null,
|
||||
'startup' => '-Xms128M -Xmx{{SERVER_MEMORY}}M -Djline.terminal=jline.UnsupportedTerminal -jar {{SERVER_JARFILE}}'
|
||||
'startup' => '-Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}'
|
||||
]);
|
||||
|
||||
$this->option['sponge'] = Models\ServiceOptions::create([
|
||||
@ -132,14 +132,14 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||
|
||||
Models\ServiceVariables::create([
|
||||
'option_id' => $this->option['vanilla']->id,
|
||||
'name' => 'Server Jar File',
|
||||
'name' => 'Server Version',
|
||||
'description' => 'The version of Minecraft Vanilla to install. Use "latest" to install the latest version.',
|
||||
'env_variable' => 'VANILLA_VERSION',
|
||||
'default_value' => 'latest',
|
||||
'user_viewable' => 1,
|
||||
'user_editable' => 1,
|
||||
'required' => 1,
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{5,6})$/'
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{3,7})$/'
|
||||
]);
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||
'user_viewable' => 1,
|
||||
'user_editable' => 1,
|
||||
'required' => 1,
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{5,6})$/'
|
||||
'regex' => '/^(latest|[a-zA-Z0-9_\.-]{3,7})$/'
|
||||
]);
|
||||
|
||||
Models\ServiceVariables::create([
|
||||
@ -189,11 +189,11 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||
'name' => 'Sponge Version',
|
||||
'description' => 'The version of SpongeVanilla to download and use.',
|
||||
'env_variable' => 'SPONGE_VERSION',
|
||||
'default_value' => '1.8.9-4.2.0-BETA-351',
|
||||
'default_value' => '1.10.2-5.1.0-BETA-359',
|
||||
'user_viewable' => 1,
|
||||
'user_editable' => 0,
|
||||
'required' => 1,
|
||||
'regex' => '/^(.*)$/'
|
||||
'regex' => '/^([a-zA-Z0-9.\-_]+)$/'
|
||||
]);
|
||||
|
||||
Models\ServiceVariables::create([
|
||||
@ -220,7 +220,7 @@ class MinecraftServiceTableSeeder extends Seeder
|
||||
'user_viewable' => 1,
|
||||
'user_editable' => 1,
|
||||
'required' => 1,
|
||||
'regex' => '/^(latest|[\d]{3,5})$/'
|
||||
'regex' => '/^(latest|[\d]{1,6})$/'
|
||||
]);
|
||||
|
||||
Models\ServiceVariables::create([
|
||||
|
Loading…
Reference in New Issue
Block a user