Skip to content

Commit 2ac734d

Browse files
committed
Update node config sent over API
1 parent 777e713 commit 2ac734d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

app/Http/Controllers/API/NodeController.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public function config(Request $request, $id)
170170
return [
171171
'web' => [
172172
'listen' => $node->daemonListen,
173+
'host' => '0.0.0.0',
173174
'ssl' => [
174175
'enabled' => ($node->scheme === 'https'),
175176
'certificate' => '/etc/certs/' . $node->fqdn . '/fullchain.pem',
@@ -183,7 +184,11 @@ public function config(Request $request, $id)
183184
'sftp' => [
184185
'path' => $node->daemonBase,
185186
'port' => (int) $node->daemonSFTP,
186-
'container' => '0x0000'
187+
'container' => 'ptdl-sftp'
188+
],
189+
'query' => [
190+
'kill_on_fail' => true,
191+
'fail_limit' => 5
187192
],
188193
'logger' => [
189194
'path' => 'logs/',
@@ -193,19 +198,16 @@ public function config(Request $request, $id)
193198
'count' => 3
194199
],
195200
'remote' => [
201+
'base' => config('app.url'),
196202
'download' => route('remote.download'),
197203
'installed' => route('remote.install')
198204
],
199205
'uploads' => [
200-
'maximumSize' => 100000000
206+
'size_limit' => $node->upload_size
201207
],
202208
'keys' => [
203209
$node->daemonSecret
204210
],
205-
'query' => [
206-
'kill_on_fail' => true,
207-
'fail_limit' => 3
208-
]
209211
];
210212
}
211213

resources/views/admin/nodes/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"container": "ptdl-sftp"
308308
},
309309
"query": {
310-
"kill_on_fail": false,
310+
"kill_on_fail": true,
311311
"fail_limit": 5
312312
},
313313
"logger": {

0 commit comments

Comments
 (0)