Skip to main content

config/config.exs

import Config

# Coffrify Elixir SDK — runtime configuration stub.
#
# The SDK does not require any global configuration: every option is passed
# at the call site through `Coffrify.new/1`. Override at runtime in your
# host application:
#
#     config :coffrify,
#       api_url: "https://api.coffrify.com",
#       timeout_ms: 30_000,
#       user_agent: "my-app/1.0 (+coffrify-elixir)"
#
# Phoenix / Plug integration reads the webhook secret either from this file,
# from `System.fetch_env!/1`, or from the controller `use` macro options.

config :coffrify,
  api_url: System.get_env("COFFRIFY_API_URL") || "https://api.coffrify.com",
  timeout_ms: 30_000,
  user_agent: nil