|
|
|
@ -95,7 +95,8 @@
|
|
|
|
|
<nav>
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="current"><a href="/">Home</a></li>
|
|
|
|
|
<li class=""><a target="_blank" href="https://gitea.urkob.com/urko/btc-pay-checker">Source code</a></li>
|
|
|
|
|
<li class=""><a target="_blank" href="https://gitea.urkob.com/urko/btc-pay-checker">Source code</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
@ -195,17 +196,17 @@
|
|
|
|
|
current page with the response HTML.</p>
|
|
|
|
|
<p>Please note that the exact method of displaying the response will depend on the specifics of your application
|
|
|
|
|
and its user interface.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Rate Limiting</h3>
|
|
|
|
|
<p>To protect the service from potential denial-of-service (DoS) attacks, we have implemented rate limiting on our
|
|
|
|
|
server. This is done using a middleware in the Fiber framework.</p>
|
|
|
|
|
<p>The current configuration allows a maximum of 5 requests per client within a 30-minute window. If a client
|
|
|
|
|
exceeds this limit, further requests will be temporarily blocked until the rate falls below the limit.</p>
|
|
|
|
|
<p>This is achieved with the following configuration:</p>
|
|
|
|
|
<h3>Rate Limiting</h3>
|
|
|
|
|
<p>To protect the service from potential denial-of-service (DoS) attacks, we have implemented rate limiting on
|
|
|
|
|
our
|
|
|
|
|
server. This is done using a middleware in the Fiber framework.</p>
|
|
|
|
|
<p>The current configuration allows a maximum of 5 requests per client within a 30-minute window. If a client
|
|
|
|
|
exceeds this limit, further requests will be temporarily blocked until the rate falls below the limit.</p>
|
|
|
|
|
<p>This is achieved with the following configuration:</p>
|
|
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
|
<pre>
|
|
|
|
|
<code>
|
|
|
|
|
s.app.Use(limiter.New(limiter.Config{
|
|
|
|
|
Max: 5,
|
|
|
|
@ -215,8 +216,9 @@
|
|
|
|
|
</code>
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
|
|
<p>Please be aware of this limit when integrating with our API to ensure a smooth user experience.</p>
|
|
|
|
|
<p>Please be aware of this limit when integrating with our API to ensure a smooth user experience.</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|