feat: upgrade index information and readme
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="current"><a href="/">Home</a></li>
|
||||
<li class=""><a href="https://gitea.urkob.com/urko/btc-pay-checker">Source code</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -195,6 +196,27 @@
|
||||
<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>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
s.app.Use(limiter.New(limiter.Config{
|
||||
Max: 5,
|
||||
Expiration: 30 * time.Minute,
|
||||
LimiterMiddleware: limiter.SlidingWindow{},
|
||||
}))
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<p>Please be aware of this limit when integrating with our API to ensure a smooth user experience.</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user