From 7916ef1beeb1dcd82c78a9ecf440466d8955deed Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Thu, 4 Nov 2021 19:57:52 -0700 Subject: [PATCH] Make rpc enabled config set to false by default (#1758) --- docs/CONFIGURATION.md | 2 +- squeaknode/config/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 2c473a49..76a37bb6 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -35,7 +35,7 @@ lnd.macaroon_path | string | | yes | "" | SQUEAKNODE_LND_MACAROON_PATH | The pat tor.proxy_ip | string | | yes | "" | SQUEAKNODE_TOR_PROXY_IP | The ip address or host of the SOCKS5 Tor proxy, if one is used. tor.proxy_port | int | | yes | 0 | SQUEAKNODE_TOR_PROXY_PORT | The port of the SOCKS5 Tor proxy, is one is used. db.connection_string | string | | yes | "" | SQUEAKNODE_DB_CONNECTION_STRING | The connection string to use to connect to a SQL database. If none is specified, a sqlite database will be used on the local file system. -rpc.enabled | boolean | [true, false] | yes | true | SQUEAKNODE_RPC_ENABLED | Accept RPC commands or not. +rpc.enabled | boolean | [true, false] | yes | false | SQUEAKNODE_RPC_ENABLED | Accept RPC commands or not. rpc.host | string | | yes | "0.0.0.0" | SQUEAKNODE_RPC_HOST | Host to listen for rpc connections. rpc.port | int | | yes | 8994 | SQUEAKNODE_RPC_PORT | Port to listen for rpc connections. webadmin.enabled | boolean | [true, false] | yes | false | SQUEAKNODE_WEBADMIN_ENABLED | Run a web admin server or not. diff --git a/squeaknode/config/config.py b/squeaknode/config/config.py index b983fad0..efa2f81d 100644 --- a/squeaknode/config/config.py +++ b/squeaknode/config/config.py @@ -106,7 +106,7 @@ class ServerConfig(Config): @section('rpc') class RpcConfig(Config): - enabled = key(cast=bool, required=False, default=True) + enabled = key(cast=bool, required=False, default=False) host = key(cast=str, required=False, default=DEFAULT_ADMIN_RPC_HOST) port = key(cast=int, required=False, default=DEFAULT_ADMIN_RPC_PORT)