-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
node-config.hdb
76 lines (56 loc) · 3.4 KB
/
node-config.hdb
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html>
{{> control/partials/head-includes }}
<head><title>Control Service: Node {{node.id}}</title></head>
<body>
{{> control/partials/nav}}
<div class="container">
{{> control/node/partial-node-nav }}
<h1 class="my-5">Node Configuration</h1>
<div class="m-4 p-4 border">
<h2>Settings</h2>
<form method="post" action="?act=config">
<div class="mb-3">
<label for="description" class="form-label">Description</label>
<input class="form-control" type="text" name="description" value="{{config.description}}"/>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="acceptQueries" {{#if config.acceptQueries}}checked{{/if}}>
<label class="form-check-label" for="acceptQueries">Accept queries</label>
<div class="form-text">Sets whether queries will be routed to this node</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="autoClean" {{#if config.autoClean}}checked{{/if}}>
<label class="form-check-label" for="autoClean">Clean Automatically</label>
<div class="form-text">If true, the system will automatically purge intermediate stages of data processing.
This should probably be on in production and probably off in testing.
</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="includeInPrecession" {{#if config.includeInPrecession}}checked{{/if}}>
<label class="form-check-label" for="includeInPrecession">Include in crawling precession</label>
<div class="form-text">If true, this node will be included in the crawling precession.</div>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="keepWarcs" {{#if config.keepWarcs}}checked{{/if}}>
<label class="form-check-label" for="includeInPrecession">Keep WARC files during crawling</label>
<div class="form-text">This toggle makes the crawler retain copies of the WebARChive data that is
normally an intermediate product of the crawling. This is useful for debugging
and testing, but the WARC files are large and take up a lot of space. Unless
there is a need for exporting these files, it is recommended to leave this off.
</div>
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" role="switch" name="disabled" {{#if config.disabled}}checked{{/if}}>
<label class="form-check-label" for="disabled">Disabled</label>
<div class="form-text">Disabling a node is a soft delete that prevents the index and
control service from starting</div>
</div>
<button type="submit" class="btn btn-primary">Save</button>
</form>
</div>
</div>
</div>
</body>
{{> control/partials/foot-includes }}
</html>