From 356c3e5cc014bb91dbaf1d3e7a0bbdf662764179 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Tue, 2 Nov 2021 00:47:51 -0700 Subject: [PATCH] Make rpc enabled by default (#1749) --- 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 76a37bb6..2c473a49 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 | false | SQUEAKNODE_RPC_ENABLED | Accept RPC commands or not. +rpc.enabled | boolean | [true, false] | yes | true | 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 fd7e72cc..4b006e1c 100644 --- a/squeaknode/config/config.py +++ b/squeaknode/config/config.py @@ -105,7 +105,7 @@ class ServerConfig(Config): @section('rpc') class RpcConfig(Config): - enabled = key(cast=bool, required=False, default=False) + enabled = key(cast=bool, required=False, default=True) host = key(cast=str, required=False, default=DEFAULT_ADMIN_RPC_HOST) port = key(cast=int, required=False, default=DEFAULT_ADMIN_RPC_PORT)