example.config.toml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. [info]
  2. url = "https://mint.thesimplekid.dev/"
  3. listen_host = "127.0.0.1"
  4. listen_port = 8085
  5. mnemonic = ""
  6. # input_fee_ppk = 0
  7. # enable_swagger_ui = false
  8. [info.quote_ttl]
  9. # Prefer explicit fields over inline tables for readability and ease of overrides
  10. mint_ttl = 600
  11. melt_ttl = 120
  12. [info.logging]
  13. # Where to output logs: "stdout", "file", or "both" (default: "both")
  14. # Note: "stdout" actually outputs to stderr (standard error stream)
  15. # output = "both"
  16. # Log level for console output (default: "info")
  17. # console_level = "info"
  18. # Log level for file output (default: "debug")
  19. # file_level = "debug"
  20. [mint_management_rpc]
  21. enabled = false
  22. # address = "127.0.0.1"
  23. # port = 8086
  24. #[prometheus]
  25. #enabled = true
  26. #address = "127.0.0.1"
  27. #port = 9090
  28. #
  29. [info.http_cache]
  30. # memory or redis
  31. backend = "memory"
  32. ttl = 60
  33. tti = 60
  34. # `key_prefix` and `connection_string` required for redis
  35. # key_prefix = "mintd"
  36. # connection_string = "redis://localhost"
  37. # NOTE: If [mint_management_rpc] is enabled these values will only be used on first start up.
  38. # Further changes must be made through the rpc.
  39. [mint_info]
  40. # name = "cdk-mintd mutiney net mint"
  41. # Hex pubkey of mint
  42. # pubkey = ""
  43. # description = "These are not real sats for testing only"
  44. # description_long = "A longer mint for testing"
  45. # motd = "Hello world"
  46. # icon_url = "https://this-is-a-mint-icon-url.com/icon.png"
  47. # contact_email = "hello@cashu.me"
  48. # Nostr pubkey of mint (Hex)
  49. # contact_nostr_public_key = ""
  50. # tos_url = "https://example.com/terms-of-service"
  51. [database]
  52. # Database engine (sqlite/postgres) defaults to sqlite
  53. engine = "sqlite"
  54. # PostgreSQL configuration (when engine = "postgres")
  55. [database.postgres]
  56. # PostgreSQL connection URL
  57. # Can also be set via CDK_MINTD_POSTGRES_URL or CDK_MINTD_DATABASE_URL environment variables
  58. # Environment variables take precedence over config file settings
  59. url = "postgresql://user:password@localhost:5432/cdk_mint"
  60. # TLS mode: "disable", "prefer", "require" (optional, defaults to "disable")
  61. tls_mode = "disable"
  62. # Maximum number of connections in the pool (optional, defaults to 20)
  63. max_connections = 20
  64. # Connection timeout in seconds (optional, defaults to 10)
  65. connection_timeout_seconds = 10
  66. [ln]
  67. # Required ln backend `cln`, `lnd`, `fakewallet`, 'lnbits', 'ldknode'
  68. ln_backend = "fakewallet"
  69. # min_mint=1
  70. # max_mint=500000
  71. # min_melt=1
  72. # max_melt=500000
  73. [cln]
  74. rpc_path = ""
  75. fee_percent = 0.04
  76. reserve_fee_min = 4
  77. # [lnbits]
  78. # admin_api_key = ""
  79. # invoice_api_key = ""
  80. # lnbits_api = ""
  81. # Note: Only LNBits v1 API is supported (websocket-based)
  82. # [lnd]
  83. # address = "https://domain:port"
  84. # macaroon_file = ""
  85. # cert_file = ""
  86. # fee_percent=0.04
  87. # reserve_fee_min=4
  88. # [ldk_node]
  89. # fee_percent = 0.04
  90. # reserve_fee_min = 4
  91. # bitcoin_network = "signet" # mainnet, testnet, signet, regtest
  92. # chain_source_type = "esplora" # esplora, bitcoinrpc
  93. #
  94. # # Mutinynet configuration (recommended for testing)
  95. # esplora_url = "https://mutinynet.com/api"
  96. # gossip_source_type = "rgs" # Use RGS for better performance
  97. # rgs_url = "https://rgs.mutinynet.com/snapshot/0"
  98. # storage_dir_path = "~/.cdk-ldk-node/mutinynet"
  99. #
  100. # # Testnet configuration
  101. # # bitcoin_network = "testnet"
  102. # # esplora_url = "https://blockstream.info/testnet/api"
  103. # # rgs_url = "https://rapidsync.lightningdevkit.org/snapshot"
  104. # # storage_dir_path = "~/.cdk-ldk-node/testnet"
  105. #
  106. # # Mainnet configuration (CAUTION: Real Bitcoin!)
  107. # # bitcoin_network = "mainnet"
  108. # # esplora_url = "https://blockstream.info/api"
  109. # # rgs_url = "https://rapidsync.lightningdevkit.org/snapshot"
  110. # # storage_dir_path = "~/.cdk-ldk-node/mainnet"
  111. #
  112. # # Bitcoin RPC configuration (when chain_source_type = "bitcoinrpc")
  113. # bitcoind_rpc_host = "127.0.0.1"
  114. # bitcoind_rpc_port = 18443
  115. # bitcoind_rpc_user = "testuser"
  116. # bitcoind_rpc_password = "testpass"
  117. #
  118. # # Node configuration
  119. # ldk_node_host = "127.0.0.1"
  120. # ldk_node_port = 8090
  121. #
  122. # # Gossip source configuration
  123. # gossip_source_type = "p2p" # p2p (direct peer-to-peer) or rgs (rapid gossip sync)
  124. #
  125. # # Webserver configuration for LDK node management interface
  126. # webserver_host = "127.0.0.1" # Default: 127.0.0.1
  127. # webserver_port = 0 # 0 = auto-assign available port
  128. [fake_wallet]
  129. supported_units = ["sat"]
  130. fee_percent = 0.02
  131. reserve_fee_min = 1
  132. min_delay_time = 1
  133. max_delay_time = 3
  134. # [grpc_processor]
  135. # gRPC Payment Processor configuration
  136. # supported_units = ["sat"]
  137. # addr = "127.0.0.1"
  138. # port = 50051
  139. # tls_dir = "/path/to/tls"
  140. # [auth]
  141. # Set to true to enable authentication features (defaults to false)
  142. # auth_enabled = false
  143. # openid_discovery = "http://127.0.0.1:8080/realms/cdk-test-realm/.well-known/openid-configuration"
  144. # openid_client_id = "cashu-client"
  145. # mint_max_bat=50
  146. # Authentication settings for endpoints
  147. # Options: "clear", "blind", "none" (none = disabled)
  148. # mint = "blind"
  149. # get_mint_quote = "none"
  150. # check_mint_quote = "none"
  151. # melt = "none"
  152. # get_melt_quote = "none"
  153. # check_melt_quote = "none"
  154. # swap = "blind"
  155. # restore = "blind"
  156. # check_proof_state = "none"