{{-- 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 Node: {{ $node->name }} @endsection @section('scripts') @parent @endsection @section('content')
Total Servers {{ count($servers) }}
Memory Allocated {{ is_numeric($stats->memory) ? $stats->memory : 0 }} MB of @if(!is_null($node->memory_overallocate)) {{ $node->memory }} @else {{ $node->memory }} @endif MB
Disk Allocated {{ is_numeric($stats->disk) ? $stats->disk : 0 }} MB of @if(!is_null($node->disk_overallocate)) {{ $node->disk }} @else {{ $node->disk }} @endif MB
Changing some details below may require that you change the configuration file on the node as well as restart the daemon. They have been marked with below.

Character limits: a-zA-Z0-9_.- and [Space] (min 1, max 100 characters).

public) === '1') ? 'checked' : '' }} id="public_1" checked>
public) === '0') ? 'checked' : '' }} id="public_0">

This must be a fully qualified domain name, you may not enter an IP address or a domain that does not exist. Why?

scheme) === 'https') ? 'checked' : '' }}/>
scheme) === 'http') ? 'checked' : '' }}/>

You should always leave SSL enabled for nodes. Disabling SSL could allow a malicious user to intercept traffic between the panel and the daemon potentially exposing sensitive information.

MB
%
MB
%

Enter the total amount of disk space and memory avaliable for new servers. If you would like to allow overallocation of disk space or memory enter the percentage that you want to allow. To disable checking for overallocation enter -1 into the field. Entering 0 will prevent creating new servers if it would put the node over the limit.

The daemon runs its own SFTP management container and does not use the SSHd process on the main physical server. Do not use the same port that you have assigned for your physcial server's SSH process.

Reset Daemon Master Key

Resetting the daemon master key will void any request coming from the old key. This key is used for all sensitive operations on the daemon including server creation and deletion. We suggest changing this key regularly for security.

{!! csrf_field() !!}
Below is the configuration file for your daemon on this node. We recommend not simply copy and pasting the code below unless you know what you are doing. You should run the auto-installer or auto-updater to setup the daemon.
{
    "web": {
        "listen": {{ $node->daemonListen }},
        "ssl": {
            "enabled": {{ $node->sceheme === 'https' ? 'true' : 'false' }},
            "certificate": "/etc/letsencrypt/live/{{ $node->fqdn }}/fullchain.pem",
            "key": "/etc/letsencrypt/live/{{ $node->fqdn }}/privkey.pem"
        }
    },
    "docker": {
        "socket": "/var/run/docker.sock"
    },
    "sftp": {
        "path": "{{ $node->daemonBase }}",
        "port": {{ $node->daemonSFTP }},
        "container": "container_id"
    },
    "logger": {
        "path": "logs/",
        "src": false,
        "level": "info",
        "period": "1d",
        "count": 3
    },
    "remote": {
        "download": "{{ route('remote.download') }}",
        "installed": "{{ route('remote.install') }}"
    },
    "uploads": {
        "maximumSize": 100000000
    },
    "keys": [
        "{{ $node->daemonSecret }}"
    ]
}
@foreach($allocations as $ip => $ports) @endforeach
IP Address Ports
{{ $ip }} @foreach($ports as $id => $allocation) @if (($id % 2) === 0) @if($allocation->assigned_to === null) {{ $allocation->port }}
@else {{ $allocation->port }}
@endif @endif @endforeach
@foreach($ports as $id => $allocation) @if (($id % 2) === 1) @if($allocation->assigned_to === null) {{ $allocation->port }}
@else {{ $allocation->port }}
@endif @endif @endforeach

Allocate Additional Ports


{!! csrf_field() !!}
The data below is live output from the daemon. CPU usage is displayed relative to the assigned CPU allocation. For example, if a server is assigned 10% and the CPU usage below displays 90% that means the server is using 9% of the total system CPU.
@foreach($servers as $server) @endforeach
Name Owner Service Memory Disk CPU Status
{{ $server->name }} {{ $server->a_ownerEmail }} {{ $server->a_serviceName }} -- / {{ $server->memory }} MB {{ $server->disk }} MB -- % --
{!! $servers->appends(['tab' => 'tab_servers'])->render() !!}
@if(count($servers) === 0)
{!! method_field('DELETE') !!} {!! csrf_field() !!}
Deleting this node is a permanent action, it cannot be undone.
@endif
@endsection