{{-- 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 {!! Theme::js('js/vendor/socketio/socket.io.min.js') !!} {!! Theme::js('js/bootstrap-notify.min.js') !!} {!! Theme::js('js/vendor/chartjs/chart.min.js') !!} {!! Theme::js('js/vendor/jquery/jquery-dateFormat.min.js') !!} @endsection @section('content')
Daemon Version (Latest: {{ Version::getDaemon() }})
System Information
Total CPU Cores
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">

Please enter domain name (e.g node.example.com) to be used for connecting to the daemon. An IP address may only be used if you are not using SSL for this node. 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": {
        "host": "0.0.0.0",
        "listen": {{ $node->daemonListen }},
        "ssl": {
            "enabled": {{ $node->scheme === '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",
        "autoupdate_images": true
    },
    "sftp": {
        "path": "{{ $node->daemonBase }}",
        "port": {{ $node->daemonSFTP }},
        "container": "ptdl-sftp"
    },
    "query": {
        "kill_on_fail": false,
        "fail_limit": 5
    },
    "logger": {
        "path": "logs/",
        "src": false,
        "level": "info",
        "period": "1d",
        "count": 3
    },
    "remote": {
        "base": "{{ config('app.url') }}",
        "download": "{{ route('remote.download') }}",
        "installed": "{{ route('remote.install') }}"
    },
    "uploads": {
        "maximumSize": 100000000
    },
    "keys": [
        "{{ $node->daemonSecret }}"
    ]
}

Allocate Additional Ports

You must enter a comma (,) or press the enter key after each port or range that you enter. They should appear in a blue box.


{!! csrf_field() !!}
@foreach($allocations as $allocation) @endforeach
IP Address IP Alias Port Assigned To
{{ $allocation->ip }} {{ $allocation->port }} @if(!is_null($allocation->assigned_to)){{ $allocation->assigned_to_name }}@endif @if(is_null($allocation->assigned_to)) @else @endif
{{ $allocations->appends(['tab' => 'tab_allocation'])->links() }}
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 === 0 ? '∞' : $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