Skip to content

Commit 023ea57

Browse files
authored
fix: update case of arguments sent to registration.libp2p.direct (#2889)
At some point it became stricter about the casing of arguments so update the JSON body to golang-style sentence case instead of javascript-style camel case.
1 parent 3c63482 commit 023ea57

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/auto-tls/src/auto-tls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ export class AutoTLS implements AutoTLSInterface {
354354
'Content-Type': 'application/json'
355355
},
356356
body: JSON.stringify({
357-
value: keyAuthorization,
358-
addresses
357+
Value: keyAuthorization,
358+
Addresses: addresses
359359
}),
360360
...options
361361
})

packages/auto-tls/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const DEFAULT_FORGE_ENDPOINT = 'https://registration.libp2p.direct'
22
export const DEFAULT_FORGE_DOMAIN = 'libp2p.direct'
33
export const DEFAULT_ACME_DIRECTORY = 'https://acme-v02.api.letsencrypt.org/directory'
44
export const DEFAULT_PROVISION_TIMEOUT = 120_000
5-
export const DEFAULT_PROVISION_REQUEST_TIMEOUT = 10_000
5+
export const DEFAULT_PROVISION_REQUEST_TIMEOUT = 60_000
66
export const DEFAULT_PROVISION_DELAY = 5_000
77
export const DEFAULT_RENEWAL_THRESHOLD = 86_400_000
88
export const DEFAULT_ACCOUNT_PRIVATE_KEY_NAME = 'auto-tls-acme-account-private-key'

packages/auto-tls/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface AutoTLSInit {
112112
* How long asking the forge endpoint to answer a DNS challenge can take
113113
* before we retry
114114
*
115-
* @default 10_000
115+
* @default 60_000
116116
*/
117117
provisionRequestTimeout?: number
118118

0 commit comments

Comments
 (0)