Added start of templating for Tor and ports etc

Also added the missing example and fixed some HTML
This commit is contained in:
2024-05-27 23:55:00 +01:00
parent 07fe0ca003
commit 8d1535f75a
2 changed files with 31 additions and 3 deletions

View File

@@ -1,6 +1,17 @@
[default]
template_dir = "templates"
address = "0.0.0.0"
network_interface = [ "eth0", "eth1" ]
mount_names = [] # All disks and mount points
mount_names = [] # All disks and mount points if none are listed
json_rpc_url = "http://127.0.0.1:18081/json_rpc"
temperature_sensors = [
# ["component name", "name that appears on site"]
["cpu_thermal temp1", "CPU"],
["gpu_thermal temp1", "GPU"]
]
## Or, to just use all and don't change their names, use the following
# temperature_sensors = []

View File

@@ -97,6 +97,24 @@
<p>Error: <span class="node_data">{{ network_if[1] }}</span></p>
{% endfor %}
</div>
{% if connection_info %}
<div class="infocard">
<h2>Connectivity</h2>
{% if connection_info.tor %}
<h3>Tor</h3>
<p>URL: <span class="node_data">{# connection_info.tor.url #}</span></p>
<p>Restricted RPC Port: <span class="node_data">{# connection_info.tor.restricted_rpc_port #}</span></p>
<p>P2P Port: <span class="node_data">{# connection_info.tor.p2p_port #}</span></p>
{% endif %}
{% if connection_info.clear %}
<h3>Clear Web</h3>
<p>URL: <span class="node_data">{# connection_info.clear_url #}</span></p>
<p>Restricted RPC Port: <span class="node_data">{# connection_info.clear.restricted_rpc_port #}</span></p>
<p>P2P Port: <span class="node_data">{# connection_info.clear.p2p_port #}</span></p>
{% endif %}
</div>
{% endif %}
</div>
</div>
<h1>Monerod Status</h1>
<div class="infocards">
@@ -158,7 +176,6 @@
</tbody>
</table>
</div>
<hr>
{{__tera_context}}
{#__tera_context#}
</body>
</html>