feat: add network config to settings

This commit is contained in:
Ricardo Arturo Cabral Mejía 2022-12-24 13:57:05 -05:00
parent 3d88f49f45
commit 43bf0f9c8f
2 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,10 @@
"pubkey": "replace-with-your-pubkey",
"contact": "operator@your-domain.com"
},
"network": {
"max_payload_size": 131072,
"remote_ip_header": "x-forwarded-for"
},
"workers": {
"count": 0
},

View File

@ -9,6 +9,11 @@ export interface Info {
contact?: string
}
export interface Network {
max_payload_size?: number
remote_ip_header?: string
}
export interface EventIdLimits {
minLeadingZeroBits?: number
}
@ -87,6 +92,7 @@ export interface Worker {
export interface ISettings {
info: Info
network?: Network
workers?: Worker
limits?: Limits
}