github.com/trezor/blockbook@v0.4.1-0.20240328132726-e9a08582ee2c/static/internal_templates/ws_limit_exceeding_ips.html (about)

     1  {{define "specific"}}
     2  <h3>IP addresses disconnected for exceeding websocket limit</h3>
     3  <div class="row g-0">
     4      <div class="col-md-11">Distinct ip addresses that exceeded limit of {{.WsGetAccountInfoLimit}} requests since last reset: {{len .WsLimitExceedingIPs}}</div>
     5      <div class="col-md-1 justify-content-right">
     6          <form method="POST" action="/admin/ws-limit-exceeding-ips">
     7              <button type="submit" class="btn btn-outline-secondary">Reset</button>
     8          </form>    
     9      </div>
    10  </row>
    11  <div>
    12      <table class="table table-hover">
    13          <thead>
    14              <tr>
    15                  <th>IP</th>
    16                  <th>Count</th>
    17              </tr>
    18          </thead>
    19          <tbody>
    20              {{range $d := .WsLimitExceedingIPs}}
    21              <tr>
    22                  <td>{{$d.IP}}</a></td>
    23                  <td>{{$d.Count}}</td>
    24              </tr>
    25              {{end}}
    26          </tbody>
    27      </table>
    28  </div>
    29  {{end}}