example.config.toml 4.7 KB

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