Added ability to configure destination value and link cost to rngit

This commit is contained in:
Mark Qvist 2026-11-17 17:00:03 +01:00
parent 0123133e71
commit 05ac4bba8e
No known key found for this signature in database
7 changed files with 100 additions and 13 deletions

View file

@ -621,7 +621,7 @@ To enable the page node, add the following to your ``~/.rngit/config`` file:
.. code:: text
[pages]
serve_nomadnet = yes
serve_nomadnet = yes
When the page node is enabled, ``rngit`` will listen on a Nomad Network node destination in addition to the Git repository destination. You can view the destination hash by running:
@ -634,6 +634,15 @@ When the page node is enabled, ``rngit`` will listen on a Nomad Network node des
Repositories Destination : <0d7334d411d00120cbad24edf355fdd2>
Nomad Network Destination : <50824b711717f97c2fb1166ceddd5ea9>
You can configure the destination stamp value and required link establishment cost with the following options:
.. code:: text
[pages]
serve_nomadnet = yes
stamp_value = 25.0
link_cost = 18.0
Accessing Repository Pages
--------------------------
@ -717,8 +726,8 @@ By default, the page node uses Nerd Font icons. If you prefer simpler icons or y
.. code:: text
[pages]
serve_nomadnet = yes
unicode_icons = yes
serve_nomadnet = yes
unicode_icons = yes
Repository Statistics
---------------------
@ -746,6 +755,8 @@ A complete node configuration might look like this:
node_name = My Git Node
announce_interval = 360
record_stats = yes
stamp_value = 27.5
link_cost = 18.5
[repositories]
public = /var/git/public
@ -758,6 +769,8 @@ A complete node configuration might look like this:
[pages]
serve_nomadnet = yes
unicode_icons = no
stamp_value = 27.5
link_cost = 18.7
Verified Releases