mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-02 04:46:38 -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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -566,7 +566,7 @@ To enable the page node, add the following to your `~/.rngit/config` file:
|
|||
|
||||
```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:
|
||||
|
|
@ -580,6 +580,15 @@ Repositories Destination : <0d7334d411d00120cbad24edf355fdd2>
|
|||
Nomad Network Destination : <50824b711717f97c2fb1166ceddd5ea9>
|
||||
```
|
||||
|
||||
You can configure the destination stamp value and required link establishment cost with the following options:
|
||||
|
||||
```text
|
||||
[pages]
|
||||
serve_nomadnet = yes
|
||||
stamp_value = 25.0
|
||||
link_cost = 18.0
|
||||
```
|
||||
|
||||
### Accessing Repository Pages
|
||||
|
||||
Once the page node is running, you can access it from any Nomad Network client by connecting to the Nomad Network destination. The page node provides the following views:
|
||||
|
|
@ -659,8 +668,8 @@ By default, the page node uses Nerd Font icons. If you prefer simpler icons or y
|
|||
|
||||
```text
|
||||
[pages]
|
||||
serve_nomadnet = yes
|
||||
unicode_icons = yes
|
||||
serve_nomadnet = yes
|
||||
unicode_icons = yes
|
||||
```
|
||||
|
||||
### Repository Statistics
|
||||
|
|
@ -686,6 +695,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
|
||||
|
|
@ -698,6 +709,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue