Skip to content

Commit f3d1d92

Browse files
author
natalia.astashenko
committed
TECH EXTLETSENC-1241 Update rate limits
1 parent 2996a02 commit f3d1d92

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

test/config/ratelimit-overrides.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
ids:
66
- id: 64.112.117.1
77
comment: test
8+
- id: 127.0.0.1
9+
comment: Plesk test
810
- CertificatesPerDomain:
911
burst: 1
1012
count: 1
@@ -13,8 +15,8 @@
1315
- id: ratelimit.me
1416
comment: Rate Limit Test Domain
1517
- CertificatesPerDomain:
16-
burst: 10000
17-
count: 10000
18+
burst: 99999
19+
count: 99999
1820
period: 2160h
1921
ids:
2022
- id: le.wtf
@@ -33,9 +35,13 @@
3335
comment: ECDSA Let's Encrypt Test Domain
3436
- id: must-staple.le.wtf
3537
comment: Must-Staple Let's Encrypt Test Domain
38+
- id: plesk.tech
39+
comment: Plesk tests
40+
- id: atf.plesk.tech
41+
comment: Plesk tests
3642
- CertificatesPerFQDNSet:
37-
burst: 10000
38-
count: 10000
43+
burst: 99999
44+
count: 99999
3945
period: 168h
4046
ids:
4147
- id: le.wtf
@@ -54,3 +60,7 @@
5460
comment: ECDSA Let's Encrypt Test Domain
5561
- id: must-staple.le.wtf
5662
comment: Must-Staple Let's Encrypt Test Domain
63+
- id: plesk.tech
64+
comment: Plesk tests
65+
- id: atf.plesk.tech
66+
comment: Plesk tests

wfe2/wfe.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"encoding/pem"
1010
"errors"
1111
"fmt"
12+
"io/ioutil"
1213
"math/big"
1314
"math/rand/v2"
14-
"io/ioutil"
1515
"net/http"
1616
"net/netip"
1717
"net/url"
@@ -72,10 +72,11 @@ const (
7272
getCertPath = "/get/cert/"
7373
getCertInfoPath = "/get/certinfo/"
7474
buildIDPath = "/build"
75+
healthzPath = "/healthz"
7576

76-
// Plesk
77-
caRootPath = "/ca-root"
78-
caEcdsaRootPath = "/ca-ecdsa-root"
77+
// Plesk
78+
caRootPath = "/ca-root"
79+
caEcdsaRootPath = "/ca-ecdsa-root"
7980
)
8081

8182
const (
@@ -432,9 +433,9 @@ func (wfe *WebFrontEndImpl) Handler(stats prometheus.Registerer, oTelHTTPOptions
432433
wfe.HandleFunc(m, buildIDPath, wfe.BuildID, "GET")
433434
wfe.HandleFunc(m, healthzPath, wfe.Healthz, "GET")
434435

435-
// Plesk
436-
wfe.HandleFunc(m, caRootPath, wfe.CARoot, "GET")
437-
wfe.HandleFunc(m, caEcdsaRootPath, wfe.CAEcdsaRoot, "GET")
436+
// Plesk
437+
wfe.HandleFunc(m, caRootPath, wfe.CARoot, "GET")
438+
wfe.HandleFunc(m, caEcdsaRootPath, wfe.CAEcdsaRoot, "GET")
438439

439440
// Endpoint for draft-ietf-acme-ari
440441
if features.Get().ServeRenewalInfo {

0 commit comments

Comments
 (0)