-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenghistask-ssh.html
More file actions
58 lines (45 loc) · 2.16 KB
/
genghistask-ssh.html
File metadata and controls
58 lines (45 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<script type="text/javascript">
RED.userSettings.add({
id:'genghistask-ssh-settings',
title: "Ssh",
get: function() {
var settingsPane = $("<div>",{id: 'red-ui-settings-tab-genghistask-ssh-settings', style: "height: 100%"});
settingsPane.append($("script[data-template-name='genghistask-ssh']").html());
$.getJSON("/genghistask-ssh", function(data) {
$('#node-input-ssh').val(data);
});
return settingsPane;
},
close: function() {}, // Called when the settings dialog is being closed
focus: function() {
RED.loader.start();
$.get("/genghistask-ssh", function(data) {
RED.loader.end();
$('#node-input-ssh-error').hide();
$('#node-input-ssh').show()
$('#node-input-ssh').val(data);
});
}
})
</script>
<script type="text/html" data-template-name="genghistask-ssh">
<div class="red-ui-help">
<div class="red-ui-settings-row">
<label for="node-input-ssh"><i class="fa fa-tag"></i> Public key of nodered</label>
<input style="width:100%;display: none;" type="text" id="node-input-ssh">
</div>
<div class="red-ui-settings-row">
You should append this key to the <code>~/.ssh/authorized_keys</code> file on the serveur you want to execute tasks on
</div>
<div class="red-ui-settings-row">
You can also add this key to the <b>Settings > Repository > Deploy Keys </b> in order to clone a protected git repository
</div>
<div class="red-ui-settings-row">
This key is currenly stored in the home directory of the user running the node-red server (usually <code>/usr/src/node-red/.ssh/</code>)
</div>
</div>
</script>
<script type="text/html" data-help-name="genghistask-ssh">
<p>You will need a ssh key to execute task remotely or clone a workspace from a protected repository</p>
<a href="#" onclick="RED.userSettings.show('genghistask-ssh-settings'); return false;">Configure the ssh key of nodered.</a>
</script>