example.config.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. [mint_management_rpc]
  9. enabled = false
  10. # address = "127.0.0.1"
  11. # port = 8086
  12. [info.http_cache]
  13. # memory or redis
  14. backend = "memory"
  15. ttl = 60
  16. tti = 60
  17. # `key_prefix` and `connection_string` required for redis
  18. # key_prefix = "mintd"
  19. # connection_string = "redis://localhost"
  20. # NOTE: If [mint_management_rpc] is enabled these values will only be used on first start up.
  21. # Further changes must be made through the rpc.
  22. [mint_info]
  23. # name = "cdk-mintd mutiney net mint"
  24. # Hex pubkey of mint
  25. # pubkey = ""
  26. # description = "These are not real sats for testing only"
  27. # description_long = "A longer mint for testing"
  28. # motd = "Hello world"
  29. # icon_url = "https://this-is-a-mint-icon-url.com/icon.png"
  30. # contact_email = "hello@cashu.me"
  31. # Nostr pubkey of mint (Hex)
  32. # contact_nostr_public_key = ""
  33. # tos_url = "https://example.com/terms-of-service"
  34. [database]
  35. # Database engine (sqlite/postgres) defaults to sqlite
  36. engine = "sqlite"
  37. # PostgreSQL configuration (when engine = "postgres")
  38. [database.postgres]
  39. # PostgreSQL connection URL
  40. # Can also be set via CDK_MINTD_POSTGRES_URL or CDK_MINTD_DATABASE_URL environment variables
  41. # Environment variables take precedence over config file settings
  42. url = "postgresql://user:password@localhost:5432/cdk_mint"
  43. # TLS mode: "disable", "prefer", "require" (optional, defaults to "disable")
  44. tls_mode = "disable"
  45. # Maximum number of connections in the pool (optional, defaults to 20)
  46. max_connections = 20
  47. # Connection timeout in seconds (optional, defaults to 10)
  48. connection_timeout_seconds = 10
  49. [ln]
  50. # Required ln backend `cln`, `lnd`, `fakewallet`, 'lnbits'
  51. ln_backend = "fakewallet"
  52. # min_mint=1
  53. # max_mint=500000
  54. # min_melt=1
  55. # max_melt=500000
  56. [cln]
  57. rpc_path = ""
  58. fee_percent = 0.04
  59. reserve_fee_min = 4
  60. # [lnbits]
  61. # admin_api_key = ""
  62. # invoice_api_key = ""
  63. # lnbits_api = ""
  64. # To be set true to support pre v1 lnbits api
  65. # retro_api=false
  66. # [lnd]
  67. # address = "https://domain:port"
  68. # macaroon_file = ""
  69. # cert_file = ""
  70. # fee_percent=0.04
  71. # reserve_fee_min=4
  72. # [fake_wallet]
  73. # supported_units = ["sat"]
  74. # fee_percent = 0.02
  75. # reserve_fee_min = 1
  76. # min_delay_time = 1
  77. # max_delay_time = 3
  78. # [grpc_processor]
  79. # gRPC Payment Processor configuration
  80. # supported_units = ["sat"]
  81. # addr = "127.0.0.1"
  82. # port = 50051
  83. # tls_dir = "/path/to/tls"
  84. # [auth]
  85. # Set to true to enable authentication features (defaults to false)
  86. # auth_enabled = false
  87. # openid_discovery = "http://127.0.0.1:8080/realms/cdk-test-realm/.well-known/openid-configuration"
  88. # openid_client_id = "cashu-client"
  89. # mint_max_bat=50
  90. # Authentication settings for endpoints
  91. # Options: "clear", "blind", "none" (none = disabled)
  92. # mint = "blind"
  93. # get_mint_quote = "none"
  94. # check_mint_quote = "none"
  95. # melt = "none"
  96. # get_melt_quote = "none"
  97. # check_melt_quote = "none"
  98. # swap = "blind"
  99. # restore = "blind"
  100. # check_proof_state = "none"