example.config.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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'
  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. # [fake_wallet]
  80. # supported_units = ["sat"]
  81. # fee_percent = 0.02
  82. # reserve_fee_min = 1
  83. # min_delay_time = 1
  84. # max_delay_time = 3
  85. # [grpc_processor]
  86. # gRPC Payment Processor configuration
  87. # supported_units = ["sat"]
  88. # addr = "127.0.0.1"
  89. # port = 50051
  90. # tls_dir = "/path/to/tls"
  91. # [auth]
  92. # Set to true to enable authentication features (defaults to false)
  93. # auth_enabled = false
  94. # openid_discovery = "http://127.0.0.1:8080/realms/cdk-test-realm/.well-known/openid-configuration"
  95. # openid_client_id = "cashu-client"
  96. # mint_max_bat=50
  97. # Authentication settings for endpoints
  98. # Options: "clear", "blind", "none" (none = disabled)
  99. # mint = "blind"
  100. # get_mint_quote = "none"
  101. # check_mint_quote = "none"
  102. # melt = "none"
  103. # get_melt_quote = "none"
  104. # check_melt_quote = "none"
  105. # swap = "blind"
  106. # restore = "blind"
  107. # check_proof_state = "none"