mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-29 19:36:55 -05:00
Added ability to configure destination value and link cost to rngit
This commit is contained in:
parent
0123133e71
commit
05ac4bba8e
7 changed files with 100 additions and 13 deletions
|
|
@ -759,7 +759,7 @@ options:
|
|||
<h3>Enabling the Git Page Node<a class="headerlink" href="#enabling-the-git-page-node" title="Link to this heading">¶</a></h3>
|
||||
<p>To enable the page node, add the following to your <code class="docutils literal notranslate"><span class="pre">~/.rngit/config</span></code> file:</p>
|
||||
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>[pages]
|
||||
serve_nomadnet = yes
|
||||
serve_nomadnet = yes
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>When the page node is enabled, <code class="docutils literal notranslate"><span class="pre">rngit</span></code> will listen on a Nomad Network node destination in addition to the Git repository destination. You can view the destination hash by running:</p>
|
||||
|
|
@ -771,6 +771,13 @@ Repositories Destination : <0d7334d411d00120cbad24edf355fdd2>
|
|||
Nomad Network Destination : <50824b711717f97c2fb1166ceddd5ea9>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>You can configure the destination stamp value and required link establishment cost with the following options:</p>
|
||||
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>[pages]
|
||||
serve_nomadnet = yes
|
||||
stamp_value = 25.0
|
||||
link_cost = 18.0
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="accessing-repository-pages">
|
||||
<h3>Accessing Repository Pages<a class="headerlink" href="#accessing-repository-pages" title="Link to this heading">¶</a></h3>
|
||||
|
|
@ -838,8 +845,8 @@ def hello_world():
|
|||
<p><strong>Icon Sets</strong></p>
|
||||
<p>By default, the page node uses Nerd Font icons. If you prefer simpler icons or your terminal does not support Nerd Fonts, you can enable Unicode icons instead:</p>
|
||||
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>[pages]
|
||||
serve_nomadnet = yes
|
||||
unicode_icons = yes
|
||||
serve_nomadnet = yes
|
||||
unicode_icons = yes
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -862,6 +869,8 @@ unicode_icons = yes
|
|||
node_name = My Git Node
|
||||
announce_interval = 360
|
||||
record_stats = yes
|
||||
stamp_value = 27.5
|
||||
link_cost = 18.5
|
||||
|
||||
[repositories]
|
||||
public = /var/git/public
|
||||
|
|
@ -874,6 +883,8 @@ unicode_icons = yes
|
|||
[pages]
|
||||
serve_nomadnet = yes
|
||||
unicode_icons = no
|
||||
stamp_value = 27.5
|
||||
link_cost = 18.7
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue