diff --git a/Rocket.toml.example b/Rocket.toml.example index fa66167..4030bb4 100644 --- a/Rocket.toml.example +++ b/Rocket.toml.example @@ -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 = [] diff --git a/templates/index.html.tera b/templates/index.html.tera index 7ea6c9f..28423ee 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -96,6 +96,24 @@

interface {{ network_if[0] }} has an error

Error: {{ network_if[1] }}

{% endfor %} + + {% if connection_info %} +
+

Connectivity

+ {% if connection_info.tor %} +

Tor

+

URL: {# connection_info.tor.url #}

+

Restricted RPC Port: {# connection_info.tor.restricted_rpc_port #}

+

P2P Port: {# connection_info.tor.p2p_port #}

+ {% endif %} + {% if connection_info.clear %} +

Clear Web

+

URL: {# connection_info.clear_url #}

+

Restricted RPC Port: {# connection_info.clear.restricted_rpc_port #}

+

P2P Port: {# connection_info.clear.p2p_port #}

+ {% endif %} +
+ {% endif %}

Monerod Status

@@ -158,7 +176,6 @@ -
-{{__tera_context}} +{#__tera_context#}