example.config.toml 4.8 KB

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