Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/servers/view/build.blade.php
7461 views
1
@extends('layouts.admin')
2
3
@section('title')
4
Server — {{ $server->name }}: Build Details
5
@endsection
6
7
@section('content-header')
8
<h1>{{ $server->name }}<small>Control allocations and system resources for this server.</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li><a href="{{ route('admin.servers') }}">Servers</a></li>
12
<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>
13
<li class="active">Build Configuration</li>
14
</ol>
15
@endsection
16
17
@section('content')
18
@include('admin.servers.partials.navigation')
19
<div class="row">
20
<form action="{{ route('admin.servers.view.build', $server->id) }}" method="POST">
21
<div class="col-sm-5">
22
<div class="box">
23
<div class="box-header with-border">
24
<h3 class="box-title">Resource Management</h3>
25
</div>
26
<div class="box-body">
27
<div class="form-group">
28
<label for="cpu" class="control-label">CPU Limit</label>
29
<div class="input-group">
30
<input type="text" name="cpu" class="form-control" value="{{ old('cpu', $server->cpu) }}"/>
31
<span class="input-group-addon">%</span>
32
</div>
33
<p class="text-muted small">Each <em>virtual</em> core (thread) 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>
34
</div>
35
<div class="form-group">
36
<label for="threads" class="control-label">CPU Pinning</label>
37
<div>
38
<input type="text" name="threads" class="form-control" value="{{ old('threads', $server->threads) }}"/>
39
</div>
40
<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>
41
</div>
42
<div class="form-group">
43
<label for="memory" class="control-label">Allocated Memory</label>
44
<div class="input-group">
45
<input type="text" name="memory" data-multiplicator="true" class="form-control" value="{{ old('memory', $server->memory) }}"/>
46
<span class="input-group-addon">MiB</span>
47
</div>
48
<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>
49
</div>
50
<div class="form-group">
51
<label for="swap" class="control-label">Allocated Swap</label>
52
<div class="input-group">
53
<input type="text" name="swap" data-multiplicator="true" class="form-control" value="{{ old('swap', $server->swap) }}"/>
54
<span class="input-group-addon">MiB</span>
55
</div>
56
<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>
57
</div>
58
<div class="form-group">
59
<label for="cpu" class="control-label">Disk Space Limit</label>
60
<div class="input-group">
61
<input type="text" name="disk" class="form-control" value="{{ old('disk', $server->disk) }}"/>
62
<span class="input-group-addon">MiB</span>
63
</div>
64
<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>
65
</div>
66
<div class="form-group">
67
<label for="io" class="control-label">Block IO Proportion</label>
68
<div>
69
<input type="text" name="io" class="form-control" value="{{ old('io', $server->io) }}"/>
70
</div>
71
<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>
72
</div>
73
<div class="form-group">
74
<label for="cpu" class="control-label">OOM Killer</label>
75
<div>
76
<div class="radio radio-danger radio-inline">
77
<input type="radio" id="pOomKillerEnabled" value="0" name="oom_disabled" @if(!$server->oom_disabled)checked @endif>
78
<label for="pOomKillerEnabled">Enabled</label>
79
</div>
80
<div class="radio radio-success radio-inline">
81
<input type="radio" id="pOomKillerDisabled" value="1" name="oom_disabled" @if($server->oom_disabled)checked @endif>
82
<label for="pOomKillerDisabled">Disabled</label>
83
</div>
84
<p class="text-muted small">
85
Enabling OOM killer may cause server processes to exit unexpectedly.
86
</p>
87
</div>
88
</div>
89
</div>
90
</div>
91
</div>
92
<div class="col-sm-7">
93
<div class="row">
94
<div class="col-xs-12">
95
<div class="box">
96
<div class="box-header with-border">
97
<h3 class="box-title">Application Feature Limits</h3>
98
</div>
99
<div class="box-body">
100
<div class="row">
101
<div class="form-group col-xs-6">
102
<label for="database_limit" class="control-label">Database Limit</label>
103
<div>
104
<input type="text" name="database_limit" class="form-control" value="{{ old('database_limit', $server->database_limit) }}"/>
105
</div>
106
<p class="text-muted small">The total number of databases a user is allowed to create for this server.</p>
107
</div>
108
<div class="form-group col-xs-6">
109
<label for="allocation_limit" class="control-label">Allocation Limit</label>
110
<div>
111
<input type="text" name="allocation_limit" class="form-control" value="{{ old('allocation_limit', $server->allocation_limit) }}"/>
112
</div>
113
<p class="text-muted small">The total number of allocations a user is allowed to create for this server.</p>
114
</div>
115
<div class="form-group col-xs-6">
116
<label for="backup_limit" class="control-label">Backup Limit</label>
117
<div>
118
<input type="text" name="backup_limit" class="form-control" value="{{ old('backup_limit', $server->backup_limit) }}"/>
119
</div>
120
<p class="text-muted small">The total number of backups that can be created for this server.</p>
121
</div>
122
</div>
123
</div>
124
</div>
125
</div>
126
<div class="col-xs-12">
127
<div class="box">
128
<div class="box-header with-border">
129
<h3 class="box-title">Allocation Management</h3>
130
</div>
131
<div class="box-body">
132
<div class="form-group">
133
<label for="pAllocation" class="control-label">Game Port</label>
134
<select id="pAllocation" name="allocation_id" class="form-control">
135
@foreach ($assigned as $assignment)
136
<option value="{{ $assignment->id }}"
137
@if($assignment->id === $server->allocation_id)
138
selected="selected"
139
@endif
140
>{{ $assignment->alias }}:{{ $assignment->port }}</option>
141
@endforeach
142
</select>
143
<p class="text-muted small">The default connection address that will be used for this game server.</p>
144
</div>
145
<div class="form-group">
146
<label for="pAddAllocations" class="control-label">Assign Additional Ports</label>
147
<div>
148
<select name="add_allocations[]" class="form-control" multiple id="pAddAllocations">
149
@foreach ($unassigned as $assignment)
150
<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>
151
@endforeach
152
</select>
153
</div>
154
<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>
155
</div>
156
<div class="form-group">
157
<label for="pRemoveAllocations" class="control-label">Remove Additional Ports</label>
158
<div>
159
<select name="remove_allocations[]" class="form-control" multiple id="pRemoveAllocations">
160
@foreach ($assigned as $assignment)
161
<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>
162
@endforeach
163
</select>
164
</div>
165
<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>
166
</div>
167
</div>
168
<div class="box-footer">
169
{!! csrf_field() !!}
170
<button type="submit" class="btn btn-primary pull-right">Update Build Configuration</button>
171
</div>
172
</div>
173
</div>
174
</div>
175
</div>
176
</form>
177
</div>
178
@endsection
179
180
@section('footer-scripts')
181
@parent
182
<script>
183
$('#pAddAllocations').select2();
184
$('#pRemoveAllocations').select2();
185
$('#pAllocation').select2();
186
</script>
187
@endsection
188
189