Skip to content

Commit a2d2069

Browse files
committed
Merge branch 'develop' into feature/service-changes
2 parents 75de060 + 8f1419b commit a2d2069

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v0.5.3 (Bodacious Boreopterus)
7+
### Fixed
8+
* Fixed an error that occurred when viewing a node listing when no nodes were created yet due to a mis-declared variable. Also fixes a bug that would have all nodes trying to connect to the daemon using the same secret token on the node listing, causing only the last node to display properly.
9+
* Fixes a bug that displayed the panel version rather than the daemon version when viewing a node.
10+
* Fixes a multiplicator being applied to an overallocation field rather than a storage space field when adding a node.
11+
12+
### Changed
13+
* Added a few new configuration variables for nodes to the default config, as well as a variable that will be used in future versions of the daemon.
14+
615
## v0.5.2 (Bodacious Boreopterus)
716
### Fixed
817
* Time axis on server graphs is corrected to show the minutes rather than the current month.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<tbody>
5252
@foreach ($nodes as $node)
5353
<tr>
54-
<td class="text-center text-muted left-icon" data-action="ping" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
54+
<td class="text-center text-muted left-icon" data-action="ping" data-secret="{{ $node->daemonSecret }}" data-location="{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}"><i class="fa fa-fw fa-refresh fa-spin"></i></td>
5555
<td><a href="/admin/nodes/view/{{ $node->id }}">{{ $node->name }}</td>
5656
<td>{{ $node->a_locationName }}</td>
5757
<td class="hidden-xs">{{ $node->memory }} MB</td>
@@ -76,7 +76,7 @@
7676
type: 'GET',
7777
url: $(element).data('location'),
7878
headers: {
79-
'X-Access-Token': '{{ $node->daemonSecret }}'
79+
'X-Access-Token': $(element).data('secret'),
8080
},
8181
timeout: 5000
8282
}).done(function (data) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<div class="form-group col-md-6 col-xs-6">
100100
<label for="memory_overallocate" class="control-label">Overallocate</label>
101101
<div class="input-group">
102-
<input type="text" name="memory_overallocate" data-multiplicator="true" class="form-control" value="{{ old('memory_overallocate', 0) }}"/>
102+
<input type="text" name="memory_overallocate" class="form-control" value="{{ old('memory_overallocate', 0) }}"/>
103103
<span class="input-group-addon">%</span>
104104
</div>
105105
</div>
@@ -117,7 +117,7 @@
117117
<div class="form-group col-md-6 col-xs-6">
118118
<label for="disk" class="control-label">Disk Space</label>
119119
<div class="input-group">
120-
<input type="text" name="disk" class="form-control" value="{{ old('disk') }}"/>
120+
<input type="text" name="disk" data-multiplicator="true" class="form-control" value="{{ old('disk') }}"/>
121121
<span class="input-group-addon">MB</span>
122122
</div>
123123
</div>

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<tbody>
7272
<tr>
7373
<td>Daemon Version</td>
74-
<td><code data-attr="info-version"><i class="fa fa-refresh fa-fw fa-spin"></i></code> (Latest: <code>{{ Version::getPanel() }}</code>)</td>
74+
<td><code data-attr="info-version"><i class="fa fa-refresh fa-fw fa-spin"></i></code> (Latest: <code>{{ Version::getDaemon() }}</code>)</td>
7575
</tr>
7676
<tr>
7777
<td>System Information</td>
@@ -276,6 +276,7 @@
276276
<div class="col-md-12">
277277
<pre><code>{
278278
"web": {
279+
"host": "0.0.0.0",
279280
"listen": {{ $node->daemonListen }},
280281
"ssl": {
281282
"enabled": {{ $node->scheme === 'https' ? 'true' : 'false' }},
@@ -292,6 +293,10 @@
292293
"port": {{ $node->daemonSFTP }},
293294
"container": "ptdl-sftp"
294295
},
296+
"query": {
297+
"kill_on_fail": false,
298+
"fail_limit": 5
299+
},
295300
"logger": {
296301
"path": "logs/",
297302
"src": false,
@@ -300,6 +305,7 @@
300305
"count": 3
301306
},
302307
"remote": {
308+
"base": "{{ config('app.url') }}",
303309
"download": "{{ route('remote.download') }}",
304310
"installed": "{{ route('remote.install') }}"
305311
},

0 commit comments

Comments
 (0)