Use YOUR_DOMAIN placeholder instead of dynamic IP to work behind reverse proxies
This commit is contained in:
@@ -299,29 +299,22 @@
|
|||||||
<h2>Quick Start for Agents</h2>
|
<h2>Quick Start for Agents</h2>
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<button class="copy-btn" onclick="navigator.clipboard.writeText(this.nextElementSibling.innerText)">Copy</button>
|
<button class="copy-btn" onclick="navigator.clipboard.writeText(this.nextElementSibling.innerText)">Copy</button>
|
||||||
<code id="quick-start-code"># 1. Discover network
|
<code># 1. Discover network
|
||||||
curl -s <span id="base-url"></span>/agent/discovery.json | jq .
|
curl -s http://YOUR_DOMAIN/agent/discovery.json | jq .
|
||||||
|
|
||||||
# 2. Get island information
|
# 2. Get island information
|
||||||
curl -s <span id="base-url-2"></span>/agent/islands.json | jq '.islands[]'
|
curl -s http://YOUR_DOMAIN/agent/islands.json | jq '.islands[]'
|
||||||
|
|
||||||
# 3. Get chain information
|
# 3. Get chain information
|
||||||
curl -s <span id="base-url-3"></span>/agent/chains.json | jq '.chains[]'
|
curl -s http://YOUR_DOMAIN/agent/chains.json | jq '.chains[]'
|
||||||
|
|
||||||
# 4. Check node health
|
# 4. Check node health
|
||||||
curl -s <span id="base-url-4"></span>/agent/health | jq .</code>
|
curl -s http://YOUR_DOMAIN/agent/health | jq .
|
||||||
|
|
||||||
|
Replace YOUR_DOMAIN with your node's domain or IP address.</code>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script>
|
|
||||||
// Dynamically insert current domain
|
|
||||||
const baseUrl = window.location.protocol + '//' + window.location.host;
|
|
||||||
document.getElementById('base-url').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-2').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-3').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-4').textContent = baseUrl;
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<h2>Key Configuration Values</h2>
|
<h2>Key Configuration Values</h2>
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
|
|||||||
@@ -252,29 +252,22 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<h2>Quick Start</h2>
|
<h2>Quick Start</h2>
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<pre id="quick-start-code"># 1. Discover the network
|
<pre># 1. Discover the network
|
||||||
curl -s <span id="base-url"></span>/agent/discovery.json | jq .
|
curl -s http://YOUR_DOMAIN/agent/discovery.json | jq .
|
||||||
|
|
||||||
# 2. Get island information
|
# 2. Get island information
|
||||||
curl -s <span id="base-url-2"></span>/agent/islands.json | jq '.islands[]'
|
curl -s http://YOUR_DOMAIN/agent/islands.json | jq '.islands[]'
|
||||||
|
|
||||||
# 3. Get chain information
|
# 3. Get chain information
|
||||||
curl -s <span id="base-url-3"></span>/agent/chains.json | jq '.chains[]'
|
curl -s http://YOUR_DOMAIN/agent/chains.json | jq '.chains[]'
|
||||||
|
|
||||||
# 4. Check node health
|
# 4. Check node health
|
||||||
curl -s <span id="base-url-4"></span>/agent/health | jq .</pre>
|
curl -s http://YOUR_DOMAIN/agent/health | jq .
|
||||||
|
|
||||||
|
Replace YOUR_DOMAIN with your node's domain or IP address.</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
|
||||||
// Dynamically insert current domain
|
|
||||||
const baseUrl = window.location.protocol + '//' + window.location.host;
|
|
||||||
document.getElementById('base-url').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-2').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-3').textContent = baseUrl;
|
|
||||||
document.getElementById('base-url-4').textContent = baseUrl;
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2>API Specification</h2>
|
<h2>API Specification</h2>
|
||||||
<p>OpenAPI 3.0 specification available at:</p>
|
<p>OpenAPI 3.0 specification available at:</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user