Skip to content

config

The stronghold config subcommands read and write the local Stronghold configuration. Use dot notation to access nested keys.

Usage

Terminal window
# View all configuration
stronghold config get
# View a specific section
stronghold config get scanning
# View a specific key
stronghold config get scanning.content.action_on_block
# Update a value
stronghold config set <key> <value>

Configuration Keys

Proxy

KeyTypeDefaultDescription
proxy.portint8402Port the transparent proxy listens on (1-65535)
proxy.bindstring127.0.0.1Address the proxy binds to

API

KeyTypeDefaultDescription
api.endpointstringhttps://api.getstronghold.xyzStronghold API server URL
api.timeoutint30API request timeout in seconds

Logging

KeyTypeDefaultDescription
logging.levelstringinfoLog verbosity: debug, info, warn, error
logging.filestring~/.stronghold/stronghold.logPath to the log file

Scanning

KeyTypeDefaultDescription
scanning.content.enabledbooltrueEnable content scanning
scanning.content.action_on_warnstringwarnAction on WARN verdict: allow, warn, or block
scanning.content.action_on_blockstringblockAction on BLOCK verdict: allow, warn, or block
scanning.output.enabledbooltrueReserved for future output policy; currently not enforced by proxy runtime
scanning.output.action_on_warnstringwarnReserved for future output policy; currently not enforced by proxy runtime
scanning.output.action_on_blockstringblockReserved for future output policy; currently not enforced by proxy runtime
scanning.modestringsmartScanning mode
scanning.block_thresholdfloat0.55Score threshold for BLOCK verdict (0.0-1.0)
scanning.fail_openbooltrueAllow traffic to pass if scanning fails

Examples

Terminal window
# View all configuration
stronghold config get
# View only scanning configuration
stronghold config get scanning
# Check the current block action for content scanning
stronghold config get scanning.content.action_on_block
# Downgrade content block action to allow (let everything through)
stronghold config set scanning.content.action_on_block allow
# Reserved key (currently no runtime effect in the proxy)
stronghold config set scanning.output.enabled false
# Raise the block threshold to reduce false positives
stronghold config set scanning.block_threshold 0.6
# Change the proxy port
stronghold config set proxy.port 8403
# Change the proxy bind address
stronghold config set proxy.bind 0.0.0.0