mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01: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",
|
||||
"contact": "operator@your-domain.com"
|
||||
},
|
||||
"network": {
|
||||
"max_payload_size": 131072,
|
||||
"remote_ip_header": "x-forwarded-for"
|
||||
},
|
||||
"workers": {
|
||||
"count": 0
|
||||
},
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user