mirror of
https://github.com/Cameri/nostream.git
synced 2025-06-26 16:40:48 +02:00
feat: add network config to settings
This commit is contained in:
parent
3d88f49f45
commit
43bf0f9c8f
@ -6,6 +6,10 @@
|
|||||||
"pubkey": "replace-with-your-pubkey",
|
"pubkey": "replace-with-your-pubkey",
|
||||||
"contact": "operator@your-domain.com"
|
"contact": "operator@your-domain.com"
|
||||||
},
|
},
|
||||||
|
"network": {
|
||||||
|
"max_payload_size": 131072,
|
||||||
|
"remote_ip_header": "x-forwarded-for"
|
||||||
|
},
|
||||||
"workers": {
|
"workers": {
|
||||||
"count": 0
|
"count": 0
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,11 @@ export interface Info {
|
|||||||
contact?: string
|
contact?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Network {
|
||||||
|
max_payload_size?: number
|
||||||
|
remote_ip_header?: string
|
||||||
|
}
|
||||||
|
|
||||||
export interface EventIdLimits {
|
export interface EventIdLimits {
|
||||||
minLeadingZeroBits?: number
|
minLeadingZeroBits?: number
|
||||||
}
|
}
|
||||||
@ -87,6 +92,7 @@ export interface Worker {
|
|||||||
|
|
||||||
export interface ISettings {
|
export interface ISettings {
|
||||||
info: Info
|
info: Info
|
||||||
|
network?: Network
|
||||||
workers?: Worker
|
workers?: Worker
|
||||||
limits?: Limits
|
limits?: Limits
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user