Skip to content

Commit 43bf0f9

Browse files
committed
feat: add network config to settings
1 parent 3d88f49 commit 43bf0f9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

settings.sample.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"pubkey": "replace-with-your-pubkey",
77
"contact": "[email protected]"
88
},
9+
"network": {
10+
"max_payload_size": 131072,
11+
"remote_ip_header": "x-forwarded-for"
12+
},
913
"workers": {
1014
"count": 0
1115
},

src/@types/settings.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export interface Info {
99
contact?: string
1010
}
1111

12+
export interface Network {
13+
max_payload_size?: number
14+
remote_ip_header?: string
15+
}
16+
1217
export interface EventIdLimits {
1318
minLeadingZeroBits?: number
1419
}
@@ -87,6 +92,7 @@ export interface Worker {
8792

8893
export interface ISettings {
8994
info: Info
95+
network?: Network
9096
workers?: Worker
9197
limits?: Limits
9298
}

0 commit comments

Comments
 (0)