34 lines
655 B
TOML

[server]
host = "0.0.0.0"
port = $CERTIFICATOR_PORT
log_level = "info"
[bitcoin]
network = "mainnet"
rpc_url = "$BITCOIN_RPC_URL"
rpc_user = ""
rpc_password = ""
wallet_name = "$BITCOIN_CERTIFICATOR_NAME"
min_confirmations = 6
[relay]
websocket_url = "$RELAY_WEBSOCKET_URL"
monitor_interval_secs = 60
[anchoring]
interval_blocks = 4320 # ~30 days (144 blocks/day)
auto_anchor = true
tx_fee_sat_per_vbyte = 10
[database]
url = "postgresql://certificator:password@localhost/certificator_db"
max_connections = 10
[redis]
url = "redis://localhost:6379"
cache_ttl_secs = 3600
[api]
jwt_secret = "$VITE_JWT_SECRET_KEY"
cors_allowed_origins = ["$DOMAIN"]