chore(connector): disable connector flag and WS server by default (#16146)
Fixes #16101
This commit is contained in:
parent
4673c1af57
commit
afc129ee5b
|
@ -3,9 +3,9 @@ import os
|
||||||
|
|
||||||
const DEFAULT_FLAG_DAPPS_ENABLED = false
|
const DEFAULT_FLAG_DAPPS_ENABLED = false
|
||||||
const DEFAULT_FLAG_SWAP_ENABLED = true
|
const DEFAULT_FLAG_SWAP_ENABLED = true
|
||||||
const DEFAULT_FLAG_CONNECTOR_ENABLED = true
|
const DEFAULT_FLAG_CONNECTOR_ENABLED* = false
|
||||||
|
|
||||||
proc boolToEnv(defaultValue: bool): string =
|
proc boolToEnv*(defaultValue: bool): string =
|
||||||
return if defaultValue: "1" else: "0"
|
return if defaultValue: "1" else: "0"
|
||||||
|
|
||||||
QtObject:
|
QtObject:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import os, sequtils, strutils, stew/shims/strformat, chronicles
|
import os, sequtils, strutils, stew/shims/strformat, chronicles
|
||||||
|
|
||||||
|
import app/global/feature_flags
|
||||||
|
|
||||||
import # vendor libs
|
import # vendor libs
|
||||||
confutils
|
confutils
|
||||||
|
|
||||||
|
@ -261,12 +263,12 @@ type StatusDesktopConfig = object
|
||||||
name: "USE_MOCKED_KEYCARD"
|
name: "USE_MOCKED_KEYCARD"
|
||||||
abbr: "use-mocked-keycard" .}: bool
|
abbr: "use-mocked-keycard" .}: bool
|
||||||
httpApiEnabled* {.
|
httpApiEnabled* {.
|
||||||
defaultValue: true
|
defaultValue: getEnv("FLAG_CONNECTOR_ENABLED", boolToEnv(DEFAULT_FLAG_CONNECTOR_ENABLED)) != "0"
|
||||||
desc: "Enable HTTP RPC API"
|
desc: "Enable HTTP RPC API"
|
||||||
name: "HTTP_API"
|
name: "HTTP_API"
|
||||||
abbr: "http-api" .}: bool
|
abbr: "http-api" .}: bool
|
||||||
wsApiEnabled* {.
|
wsApiEnabled* {.
|
||||||
defaultValue: true
|
defaultValue: getEnv("FLAG_CONNECTOR_ENABLED", boolToEnv(DEFAULT_FLAG_CONNECTOR_ENABLED)) != "0"
|
||||||
desc: "Enable WebSocket RPC API"
|
desc: "Enable WebSocket RPC API"
|
||||||
name: "WS_API"
|
name: "WS_API"
|
||||||
abbr: "ws-api" .}: bool
|
abbr: "ws-api" .}: bool
|
||||||
|
|
Loading…
Reference in New Issue