Files
cdk/crates/cdk-mintd/example.config.toml
thesimplekid be93ff2384 Clear and Blind Auth (#510)
* feat: auth

* chore: corret error codes

* chore: corret error codes

* fix: feature auth in cdk-axum

* refactor: auth logging

* feat: include dleq in auth proof

* feat: mint max auth proofs

* chore: clippy
2025-03-24 11:13:22 +00:00

112 lines
2.6 KiB
TOML

[info]
url = "https://mint.thesimplekid.dev/"
listen_host = "127.0.0.1"
listen_port = 8085
mnemonic = ""
# input_fee_ppk = 0
# enable_swagger_ui = false
[mint_management_rpc]
# enabled = false
# address = "127.0.0.1"
# port = 8086
[info.http_cache]
# memory or redis
backend = "memory"
ttl = 60
tti = 60
# `key_prefix` and `connection_string` required for redis
# key_prefix = "mintd"
# connection_string = "redis://localhost"
# NOTE: If [mint_management_rpc] is enabled these values will only be used on first start up.
# Further changes must be made through the rpc.
[mint_info]
# name = "cdk-mintd mutiney net mint"
# Hex pubkey of mint
# pubkey = ""
# description = "These are not real sats for testing only"
# description_long = "A longer mint for testing"
# motd = "Hello world"
# icon_url = "https://this-is-a-mint-icon-url.com/icon.png"
# contact_email = "hello@cashu.me"
# Nostr pubkey of mint (Hex)
# contact_nostr_public_key = ""
# tos_url = "https://example.com/terms-of-service"
[database]
# Database engine (sqlite/redb) defaults to sqlite
# engine = "sqlite"
[ln]
# Required ln backend `cln`, `lnd`, `strike`, `fakewallet`, 'lnbits', 'phoenixd'
ln_backend = "cln"
# min_mint=1
# max_mint=500000
# min_melt=1
# max_melt=500000
[cln]
#Required if using cln backend path to rpc
cln_path = ""
rpc_path = ""
fee_percent = 0.04
reserve_fee_min = 4
# [strike]
# For the Webhook subscription, the url under [info] must be a valid, absolute, non-local, https url
# api_key=""
# Optional default sats
# supported_units=[""]
# fee_percent=0.04
# reserve_fee_min=4
# [lnbits]
# admin_api_key = ""
# invoice_api_key = ""
# lnbits_api = ""
# fee_percent=0.04
# reserve_fee_min=4
# [phoenixd]
# For 'phoenixd' backend, also specify fee_percent (% fee of the ln payment that mint will put in the melt quote) and reserve_fee_min (absolute amount-higher of fee_percent or reserve_fee_min is the fee reserve).
# api_password = ""
# api_url = ""
# fee_percent=0.05
# reserve_fee_min=4
# [lnd]
# address = ""
# macaroon_file = ""
# cert_file = ""
# fee_percent=0.04
# reserve_fee_min=4
# [fake_wallet]
# supported_units = ["sat"]
# fee_percent = 0.02
# reserve_fee_min = 1
# min_delay_time = 1
# max_delay_time = 3
# [grpc_processor]
# gRPC Payment Processor configuration
# supported_units = ["sat"]
# addr = "127.0.0.1"
# port = 50051
# tls_dir = "/path/to/tls"
# [auth]
# openid_discovery = "http://127.0.0.1:8080/realms/cdk-test-realm/.well-known/openid-configuration"
# openid_client_id = "cashu-client"
# mint_max_bat=50
# enabled_mint=true
# enabled_melt=true
# enabled_swap=true
# enabled_check_mint_quote=true
# enabled_check_melt_quote=true
# enabled_restore=true