0
edits
Changes
→Node's web-interface
===Node's web-interface===
Every node has web-interface to view current status, as well as options to change some of the parameters "on the fly" (without restarting the node).
Web-interface works on the main port of the node (specified by parameter <tt>--port</tt>).
By default web-interface is available only from the same machine, from which the node was launched.
Also you can set a password for web-interface to prevent unauthorized access, using option <tt>--service-access-token</tt>
Full list of options to customize web-interface:
*<tt>--stats-report-interval</tt> - частотаfrequency обновленияof статистикиnode's узлаstatistics вupdate, секундахin seconds (поby умолчаниюdefault 60)
*<tt>--stats-report-peers</tt> - if this option is set, a list of nodes that are currently connected to the node will be shown in monitoring (by default node list is not displayed).
*<tt>--service-remote-access</tt> - разрешитьallow удаленныйremote доступaccess наto вебweb-интерфейсinterface
*<tt>--service-access-token</tt> - задатьset парольa наpassword вебfor web-интерфейсinterface
Access to web-interface is performed via HTTP-GET request to the node's port:
*мониторингmonitoring - <nowiki>http://node.address:PORT/app/TOKEN/monitoring</nowiki>
*управлениеcontrol - <nowiki>http://node.address:PORT/app/TOKEN/update</nowiki>
<br/>ОтветыResponses выдаютсяare вgiven форматеin JSON format.
Examples:
*request to the node without the password for web-interface:
<nowiki>http://192.168.1.3:8640/app/monitor</nowiki>
*request to the node with the password "qwerty" for web-interface:
<nowiki>http://192.168.1.3:8640/app/qwerty/monitor</nowiki>