Skip to content

Commit 24bab6d

Browse files
committed
use getConfigurationAsJson in the admin/nodes/view view
1 parent ef1fa4c commit 24bab6d

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

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

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -287,48 +287,7 @@
287287
Below is the configuration file for your daemon on this node. We recommend <strong>not</strong> simply copy and pasting the code below unless you know what you are doing. You should run the <code>auto-installer</code> or <code>auto-updater</code> to setup the daemon.
288288
</div>
289289
<div class="col-md-12">
290-
<pre><code>{
291-
"web": {
292-
"host": "0.0.0.0",
293-
"listen": {{ $node->daemonListen }},
294-
"ssl": {
295-
"enabled": {{ $node->scheme === 'https' ? 'true' : 'false' }},
296-
"certificate": "/etc/letsencrypt/live/{{ $node->fqdn }}/fullchain.pem",
297-
"key": "/etc/letsencrypt/live/{{ $node->fqdn }}/privkey.pem"
298-
}
299-
},
300-
"docker": {
301-
"socket": "/var/run/docker.sock",
302-
"autoupdate_images": true
303-
},
304-
"sftp": {
305-
"path": "{{ $node->daemonBase }}",
306-
"port": {{ $node->daemonSFTP }},
307-
"container": "ptdl-sftp"
308-
},
309-
"query": {
310-
"kill_on_fail": true,
311-
"fail_limit": 5
312-
},
313-
"logger": {
314-
"path": "logs/",
315-
"src": false,
316-
"level": "info",
317-
"period": "1d",
318-
"count": 3
319-
},
320-
"remote": {
321-
"base": "{{ config('app.url') }}",
322-
"download": "{{ route('remote.download') }}",
323-
"installed": "{{ route('remote.install') }}"
324-
},
325-
"uploads": {
326-
"size_limit": {{ $node->upload_size }}
327-
},
328-
"keys": [
329-
"{{ $node->daemonSecret }}"
330-
]
331-
}</code></pre>
290+
<pre><code>{{ $node->getConfigurationAsJson(true) }}</code></pre>
332291
</div>
333292
</div>
334293
</div>

0 commit comments

Comments
 (0)