use Mix.Config config :qcloud, :apps, app_name: %{ cos: %{ app_id: "xxx", host: "xxx", bucket: "xxx", secret_id: "xxx", secret_key: "xxx" } }