config.exs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is responsible for configuring your application
  2. # and its dependencies with the aid of the Mix.Config module.
  3. #
  4. # This configuration file is loaded before any dependency and
  5. # is restricted to this project.
  6. # General application configuration
  7. use Mix.Config
  8. config :openpod,
  9. ecto_repos: [Openpod.Repo]
  10. # Configures the endpoint
  11. config :openpod, OpenpodWeb.Endpoint,
  12. url: [host: "localhost"],
  13. secret_key_base: "SWl0xVj8AVXoc2G0eUk6VfeOd/lppjkaKbiHWs4ucxAUJ8+wzAEa4bMo0ZVjtVVk",
  14. render_errors: [view: OpenpodWeb.ErrorView, accepts: ~w(html json), layout: false],
  15. pubsub_server: Openpod.PubSub,
  16. live_view: [signing_salt: "6jHv46Xw"]
  17. config :openpod,
  18. cache_duration: :timer.hours(24),
  19. base_url: "https://openpod.abbiamoundominio.org/",
  20. podders: [
  21. "uau-pod",
  22. "fuori-fase",
  23. "incontri-a-piano-terra",
  24. "la_blogosfera_podcast",
  25. "prnt_scrn_podcast",
  26. "anarcotraffico-001-20200611.128",
  27. "picchi-di-frequenza",
  28. "tracce_202005",
  29. "carteggio-podcast"
  30. ]
  31. # Configures Elixir's Logger
  32. config :logger, :console,
  33. format: "$time $metadata[$level] $message\n",
  34. metadata: [:request_id]
  35. # Use Jason for JSON parsing in Phoenix
  36. config :phoenix, :json_library, Jason
  37. config :openpod, Openpod.Boundary.ArchiveScheduler,
  38. jobs: [
  39. {"0 6-18 * * *", {Openpod.Boundary.ArchiveReloader, :reload, []}}
  40. ]
  41. # Import environment specific config. This must remain at the bottom
  42. # of this file so it overrides the configuration defined above.
  43. import_config "#{Mix.env()}.exs"