diff --git a/logic/disk.js b/logic/disk.js index c2e4056..72b3d3b 100644 --- a/logic/disk.js +++ b/logic/disk.js @@ -15,6 +15,7 @@ const DEFAULT_ADVANCED_SETTINGS = { incomingConnections: false, cacheSizeMB: 450, mempoolFullRbf: false, + rest: false, prune: { enabled: false, pruneSizeGB: 300, @@ -108,6 +109,12 @@ function settingsToMultilineConfString(settings) { umbrelBitcoinConfig.push('mempoolfullrbf=1'); } + // rest + if (settings.rest) { + umbrelBitcoinConfig.push("# Enable public REST endpoints."); + umbrelBitcoinConfig.push('rest=1'); + } + // prune if (settings.prune.enabled) { umbrelBitcoinConfig.push("# Reduce disk space requirements to this many MiB by enabling pruning (deleting) of old blocks. This mode is incompatible with -txindex and -coinstatsindex. WARNING: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, greater than or equal to 550 = automatically prune blocks to stay under target size in MiB)."); diff --git a/ui/src/components/AdvancedSettingsModal.vue b/ui/src/components/AdvancedSettingsModal.vue index 84b2c70..fff742c 100644 --- a/ui/src/components/AdvancedSettingsModal.vue +++ b/ui/src/components/AdvancedSettingsModal.vue @@ -187,6 +187,28 @@