Update node config sent over API
This commit is contained in:
parent
777e7138e6
commit
2ac734d595
|
@ -170,6 +170,7 @@ class NodeController extends BaseController
|
||||||
return [
|
return [
|
||||||
'web' => [
|
'web' => [
|
||||||
'listen' => $node->daemonListen,
|
'listen' => $node->daemonListen,
|
||||||
|
'host' => '0.0.0.0',
|
||||||
'ssl' => [
|
'ssl' => [
|
||||||
'enabled' => ($node->scheme === 'https'),
|
'enabled' => ($node->scheme === 'https'),
|
||||||
'certificate' => '/etc/certs/' . $node->fqdn . '/fullchain.pem',
|
'certificate' => '/etc/certs/' . $node->fqdn . '/fullchain.pem',
|
||||||
|
@ -183,7 +184,11 @@ class NodeController extends BaseController
|
||||||
'sftp' => [
|
'sftp' => [
|
||||||
'path' => $node->daemonBase,
|
'path' => $node->daemonBase,
|
||||||
'port' => (int) $node->daemonSFTP,
|
'port' => (int) $node->daemonSFTP,
|
||||||
'container' => '0x0000'
|
'container' => 'ptdl-sftp'
|
||||||
|
],
|
||||||
|
'query' => [
|
||||||
|
'kill_on_fail' => true,
|
||||||
|
'fail_limit' => 5
|
||||||
],
|
],
|
||||||
'logger' => [
|
'logger' => [
|
||||||
'path' => 'logs/',
|
'path' => 'logs/',
|
||||||
|
@ -193,19 +198,16 @@ class NodeController extends BaseController
|
||||||
'count' => 3
|
'count' => 3
|
||||||
],
|
],
|
||||||
'remote' => [
|
'remote' => [
|
||||||
|
'base' => config('app.url'),
|
||||||
'download' => route('remote.download'),
|
'download' => route('remote.download'),
|
||||||
'installed' => route('remote.install')
|
'installed' => route('remote.install')
|
||||||
],
|
],
|
||||||
'uploads' => [
|
'uploads' => [
|
||||||
'maximumSize' => 100000000
|
'size_limit' => $node->upload_size
|
||||||
],
|
],
|
||||||
'keys' => [
|
'keys' => [
|
||||||
$node->daemonSecret
|
$node->daemonSecret
|
||||||
],
|
],
|
||||||
'query' => [
|
|
||||||
'kill_on_fail' => true,
|
|
||||||
'fail_limit' => 3
|
|
||||||
]
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -307,7 +307,7 @@
|
||||||
"container": "ptdl-sftp"
|
"container": "ptdl-sftp"
|
||||||
},
|
},
|
||||||
"query": {
|
"query": {
|
||||||
"kill_on_fail": false,
|
"kill_on_fail": true,
|
||||||
"fail_limit": 5
|
"fail_limit": 5
|
||||||
},
|
},
|
||||||
"logger": {
|
"logger": {
|
||||||
|
|
Loading…
Reference in New Issue