2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Server — {{ $server->name }}: Build Details
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $server->name }}<small>Control allocations and system resources for this server.</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li><a href="{{ route('admin.servers') }}">Servers</a></li>
|
|
|
|
<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>
|
|
|
|
<li class="active">Build Configuration</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2019-12-17 05:14:27 +00:00
|
|
|
@include('admin.servers.partials.navigation')
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="row">
|
|
|
|
<form action="{{ route('admin.servers.view.build', $server->id) }}" method="POST">
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2020-03-29 18:41:55 +00:00
|
|
|
<h3 class="box-title">Resource Management</h3>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2020-04-10 04:54:40 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="cpu" class="control-label">CPU Limit</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="cpu" class="form-control" value="{{ old('cpu', $server->cpu) }}"/>
|
|
|
|
<span class="input-group-addon">%</span>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">Each <em>physical</em> core on the system is considered to be <code>100%</code>. Setting this value to <code>0</code> will allow a server to use CPU time without restrictions.</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2020-10-06 21:09:16 +00:00
|
|
|
<label for="threads" class="control-label">CPU Pinning</label>
|
2020-04-10 04:54:40 +00:00
|
|
|
<div>
|
|
|
|
<input type="text" name="threads" class="form-control" value="{{ old('threads', $server->threads) }}"/>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small"><strong>Advanced:</strong> Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: <code>0</code>, <code>0-1,3</code>, or <code>0,1,3,4</code>.</p>
|
|
|
|
</div>
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="memory" class="control-label">Allocated Memory</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="memory" data-multiplicator="true" class="form-control" value="{{ old('memory', $server->memory) }}"/>
|
|
|
|
<span class="input-group-addon">MB</span>
|
|
|
|
</div>
|
2017-05-29 19:48:44 +00:00
|
|
|
<p class="text-muted small">The maximum amount of memory allowed for this container. Setting this to <code>0</code> will allow unlimited memory in a container.</p>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="swap" class="control-label">Allocated Swap</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="swap" data-multiplicator="true" class="form-control" value="{{ old('swap', $server->swap) }}"/>
|
|
|
|
<span class="input-group-addon">MB</span>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">Setting this to <code>0</code> will disable swap space on this server. Setting to <code>-1</code> will allow unlimited swap.</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2020-04-10 04:54:40 +00:00
|
|
|
<label for="cpu" class="control-label">Disk Space Limit</label>
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="input-group">
|
2020-04-10 04:54:40 +00:00
|
|
|
<input type="text" name="disk" class="form-control" value="{{ old('disk', $server->disk) }}"/>
|
|
|
|
<span class="input-group-addon">MB</span>
|
2020-03-29 18:41:55 +00:00
|
|
|
</div>
|
2020-06-24 03:24:09 +00:00
|
|
|
<p class="text-muted small">This server will not be allowed to boot if it is using more than this amount of space. If a server goes over this limit while running it will be safely stopped and locked until enough space is available. Set to <code>0</code> to allow unlimited disk usage.</p>
|
2020-03-29 18:41:55 +00:00
|
|
|
</div>
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="io" class="control-label">Block IO Proportion</label>
|
|
|
|
<div>
|
|
|
|
<input type="text" name="io" class="form-control" value="{{ old('io', $server->io) }}"/>
|
|
|
|
</div>
|
2020-04-03 21:43:15 +00:00
|
|
|
<p class="text-muted small"><strong>Advanced</strong>: The IO performance of this server relative to other <em>running</em> containers on the system. Value should be between <code>10</code> and <code>1000</code>.</code></p>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
2019-08-03 20:41:24 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="cpu" class="control-label">OOM Killer</label>
|
|
|
|
<div>
|
|
|
|
<div class="radio radio-danger radio-inline">
|
|
|
|
<input type="radio" id="pOomKillerEnabled" value="0" name="oom_disabled" @if(!$server->oom_disabled)checked @endif>
|
|
|
|
<label for="pOomKillerEnabled">Enabled</label>
|
|
|
|
</div>
|
|
|
|
<div class="radio radio-success radio-inline">
|
|
|
|
<input type="radio" id="pOomKillerDisabled" value="1" name="oom_disabled" @if($server->oom_disabled)checked @endif>
|
|
|
|
<label for="pOomKillerDisabled">Disabled</label>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">
|
|
|
|
Enabling OOM killer may cause server processes to exit unexpectedly.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-7">
|
2018-03-02 02:08:27 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Application Feature Limits</h3>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
2018-03-02 02:08:27 +00:00
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-xs-6">
|
2020-04-26 19:12:29 +00:00
|
|
|
<label for="database_limit" class="control-label">Database Limit</label>
|
2018-03-02 02:08:27 +00:00
|
|
|
<div>
|
|
|
|
<input type="text" name="database_limit" class="form-control" value="{{ old('database_limit', $server->database_limit) }}"/>
|
|
|
|
</div>
|
2020-04-26 19:12:29 +00:00
|
|
|
<p class="text-muted small">The total number of databases a user is allowed to create for this server.</p>
|
2018-03-02 02:08:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-xs-6">
|
2020-04-26 19:12:29 +00:00
|
|
|
<label for="allocation_limit" class="control-label">Allocation Limit</label>
|
2018-03-02 02:08:27 +00:00
|
|
|
<div>
|
|
|
|
<input type="text" name="allocation_limit" class="form-control" value="{{ old('allocation_limit', $server->allocation_limit) }}"/>
|
|
|
|
</div>
|
2020-09-29 16:00:59 +00:00
|
|
|
<p class="text-muted small">The total number of allocations a user is allowed to create for this server.</p>
|
2020-04-26 19:12:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-xs-6">
|
|
|
|
<label for="backup_limit" class="control-label">Backup Limit</label>
|
|
|
|
<div>
|
|
|
|
<input type="text" name="backup_limit" class="form-control" value="{{ old('backup_limit', $server->backup_limit) }}"/>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">The total number of backups that can be created for this server.</p>
|
2018-03-02 02:08:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-02 02:08:27 +00:00
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Allocation Management</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pAllocation" class="control-label">Game Port</label>
|
|
|
|
<select id="pAllocation" name="allocation_id" class="form-control">
|
|
|
|
@foreach ($assigned as $assignment)
|
|
|
|
<option value="{{ $assignment->id }}"
|
|
|
|
@if($assignment->id === $server->allocation_id)
|
|
|
|
selected="selected"
|
|
|
|
@endif
|
|
|
|
>{{ $assignment->alias }}:{{ $assignment->port }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
<p class="text-muted small">The default connection address that will be used for this game server.</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pAddAllocations" class="control-label">Assign Additional Ports</label>
|
|
|
|
<div>
|
|
|
|
<select name="add_allocations[]" class="form-control" multiple id="pAddAllocations">
|
|
|
|
@foreach ($unassigned as $assignment)
|
|
|
|
<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">Please note that due to software limitations you cannot assign identical ports on different IPs to the same server.</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pRemoveAllocations" class="control-label">Remove Additional Ports</label>
|
|
|
|
<div>
|
|
|
|
<select name="remove_allocations[]" class="form-control" multiple id="pRemoveAllocations">
|
|
|
|
@foreach ($assigned as $assignment)
|
|
|
|
<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">Simply select which ports you would like to remove from the list above. If you want to assign a port on a different IP that is already in use you can select it from the left and delete it here.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="submit" class="btn btn-primary pull-right">Update Build Configuration</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
$('#pAddAllocations').select2();
|
|
|
|
$('#pRemoveAllocations').select2();
|
|
|
|
$('#pAllocation').select2();
|
|
|
|
</script>
|
|
|
|
@endsection
|