mirror of
https://github.com/status-im/status-node-manager.git
synced 2025-02-22 01:08:27 +00:00
refactor(SNM config): Move rest config top level
This commit is contained in:
parent
ab80677ff5
commit
f54600b17e
@ -17,11 +17,6 @@ type
|
||||
|
||||
type
|
||||
StatusNodeManagerConfig* = object
|
||||
case cmd* {.
|
||||
command
|
||||
defaultValue: SNMStartUpCmd.noCommand .}: SNMStartUpCmd
|
||||
|
||||
of SNMStartUpCmd.noCommand:
|
||||
restEnabled* {.
|
||||
desc: "Enable the REST server"
|
||||
defaultValue: true
|
||||
@ -56,6 +51,13 @@ type
|
||||
desc: "Maximum size of REST request headers (kilobytes)"
|
||||
name: "rest-max-headers-size" .}: Natural
|
||||
|
||||
case cmd* {.
|
||||
command
|
||||
defaultValue: SNMStartUpCmd.noCommand .}: SNMStartUpCmd
|
||||
|
||||
of SNMStartUpCmd.noCommand:
|
||||
discard
|
||||
|
||||
of SNMStartUpCmd.pair:
|
||||
qr* {.
|
||||
desc: "A string representation of the QR code produced by the GUI"
|
||||
|
Loading…
x
Reference in New Issue
Block a user