1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 12:22:28 +01:00

Update node config sent over API

This commit is contained in:
Dane Everitt 2016-12-02 19:12:29 -05:00
parent 777e7138e6
commit 2ac734d595
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 9 additions and 7 deletions

View File

@ -170,6 +170,7 @@ class NodeController extends BaseController
return [
'web' => [
'listen' => $node->daemonListen,
'host' => '0.0.0.0',
'ssl' => [
'enabled' => ($node->scheme === 'https'),
'certificate' => '/etc/certs/' . $node->fqdn . '/fullchain.pem',
@ -183,7 +184,11 @@ class NodeController extends BaseController
'sftp' => [
'path' => $node->daemonBase,
'port' => (int) $node->daemonSFTP,
'container' => '0x0000'
'container' => 'ptdl-sftp'
],
'query' => [
'kill_on_fail' => true,
'fail_limit' => 5
],
'logger' => [
'path' => 'logs/',
@ -193,19 +198,16 @@ class NodeController extends BaseController
'count' => 3
],
'remote' => [
'base' => config('app.url'),
'download' => route('remote.download'),
'installed' => route('remote.install')
],
'uploads' => [
'maximumSize' => 100000000
'size_limit' => $node->upload_size
],
'keys' => [
$node->daemonSecret
],
'query' => [
'kill_on_fail' => true,
'fail_limit' => 3
]
];
}

View File

@ -307,7 +307,7 @@
"container": "ptdl-sftp"
},
"query": {
"kill_on_fail": false,
"kill_on_fail": true,
"fail_limit": 5
},
"logger": {