{{-- Copyright (c) 2015 - 2016 Dane Everitt --}} {{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}} {{-- of this software and associated documentation files (the "Software"), to deal --}} {{-- in the Software without restriction, including without limitation the rights --}} {{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}} {{-- copies of the Software, and to permit persons to whom the Software is --}} {{-- furnished to do so, subject to the following conditions: --}} {{-- The above copyright notice and this permission notice shall be included in all --}} {{-- copies or substantial portions of the Software. --}} {{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}} {{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}} {{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}} {{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}} {{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}} {{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}} {{-- SOFTWARE. --}} @extends('layouts.admin') @section('title') Managing Server: {{ $server->name }} ({{ $server->uuidShort}}) @endsection @section('content')
@if($server->suspended === 1 && !$server->trashed())
This server is suspended and has no user access. Processes cannot be started and files cannot be modified. All API access is disabled unless using a master token.
@elseif($server->trashed())
This server is marked for deletion {{ Carbon::parse($server->deleted_at)->addMinutes(env('APP_DELETE_MINUTES', 10))->diffForHumans() }}. If you want to cancel this action simply click the button below.

{!! csrf_field() !!}
@endif @if($server->installed === 0)
This server is still running through the install process and is not avaliable for use just yet. This message will disappear once this process is completed.
@elseif($server->installed === 2)
This server failed to install properly. You should delete it and try to create it again or check the daemon logs.
@endif
UUID {{ $server->uuid }}
Docker Container ID
Docker User ID
Owner {{ $server->a_ownerEmail }}
Location {{ $node->a_locationName }}
Node {{ $node->name }}
Service {{ $server->a_serviceName }} :: {{ $server->a_servceOptionName }}
Name {{ $server->name }}
Memory {{ $server->memory }}MB / {{ $server->swap }}MB
OOM Killer {!! ($server->oom_disabled === 0) ? 'Enabled' : 'Disabled' !!}
Disk Space {{ $server->disk }}MB
Block IO Weight {{ $server->io }}
CPU Limit {{ $server->cpu }}%
Default Connection {{ $server->ip }}:{{ $server->port }}
Connection Alias @if(!is_null($server->ip_alias)) {{ $server->ip_alias }}:{{ $server->port }} @else No Alias Assigned @endif
Installed {!! ($server->installed === 1) ? 'Yes' : 'No' !!}
Suspended {!! ($server->suspended === 1) ? 'Suspended' : 'No' !!}
@if($server->installed === 1)

Character limits: a-zA-Z0-9_- and [Space] (max 35 characters).

You can change the owner of this server by changing this field to an email matching another use on this system. If you do this a new daemon security token will be generated automatically.

This token should not be shared with anyone as it has full control over this server.

Yes, Reset Daemon Token

Resetting this token will cause any requests using the old token to fail.

{!! csrf_field() !!}

The docker image to use for this server. The default image for this service and option combination is {{ $server->docker_image }}.

{!! csrf_field() !!}
After editing any of the options below you will need to restart the server for changes to take effect. If the server is currently off, you just need to start it and the container will be rebuilt with the new settings.
MB
MB

Setting this to 0 will disable swap space on this server.

%

Each physical core on the system is considered to be 100%. Setting this value to 0 will allow a server to use CPU time without restrictions.

Changing this value can have negative effects on all containers on the system. We strongly recommend leaving this value as 500.


Additional IPs and Ports can be assigned to this server for use by plugins or other software. The game port is what will show up for the user to use to connect to thier server, and what their configuration files will be forced to use for binding.
@foreach ($assigned as $assignment)
ip == $server->ip && $assignment->port == $server->port) checked="checked" @endif name="default" value="{{ $assignment->ip }}:{{ $assignment->port }}"/>
@endforeach

Please note that due to software limitations you cannot assign identical ports on different IPs to the same server. For example, you cannot assign both 192.168.0.5:25565 and 192.168.10.5:25565 to the same server.

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 above and delete it down here.

{!! csrf_field() !!}
Changing any of the values below will require a restart for them to take effect.
{{ $server->a_serviceExecutable }}

The following data replacers are avaliable for the startup command: @{{SERVER_MEMORY}}, @{{SERVER_IP}}, and @{{SERVER_PORT}}. They will be replaced with the allocated memory, server ip, and server port respectively.

@foreach($startup as $item)

{!! $item->description !!}
Regex: {{ $item->regex }}
Access as: {{{{$item->env_variable}}}}

@endforeach
{!! csrf_field() !!}

Add New Database

s{{ $server->id }}_

Which IP to allow connections from. Standard MySQL wildcard notation allowed (e.g. 192.168.%.%).

{!! csrf_field() !!}
@if(count($databases) > 0)
@foreach($databases as $database) @endforeach
Database User (Connections From) Password DB Server
{{ $database->database }} {{ $database->username }} ({{ $database->remote }}) {{ Crypt::decrypt($database->password) }} {{ $database->a_host }}:{{ $database->a_port }}
@endif
@endif @if($server->installed !== 2)

This will take you to the server management page that users normally see and allow you to manage server files as well as check the console and data usage.

{!! csrf_field() !!}

This will toggle the install status for the server.

If you have just created this server it is ill advised to perform this action as the daemon will contact the panel when finished which could cause the install status to be wrongly set.
@if($server->installed === 1)
{!! csrf_field() !!}

This will trigger a rebuild of the server container when it next starts up. This is useful if you modified the server configuration file manually, or something just didn't work out correctly.

A rebuild will automatically occur whenever you edit build configuration settings for the server.
@endif
@if($server->suspended === 0)
{!! csrf_field() !!}

This will suspend the server, stop any running processes, and immediately block the user from being able to access their files or otherwise manage the server through the panel or API.

@else
{!! csrf_field() !!}

This will unsuspend the server and restore normal user access.

@endif
@endif
@if($server->installed === 1)
{!! csrf_field() !!} {!! method_field('DELETE') !!}
Deleting a server is an irreversible action. All data will be immediately removed relating to this server.
@endif
{!! csrf_field() !!} {!! method_field('DELETE') !!}
This is the same as deleting a server, however, if an error is returned by the daemon it is ignored and the server is still removed from the panel.
@endsection