prod.exs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. use Mix.Config
  2. # For production, don't forget to configure the url host
  3. # to something meaningful, Phoenix uses this information
  4. # when generating URLs.
  5. #
  6. # Note we also include the path to a cache manifest
  7. # containing the digested version of static files. This
  8. # manifest is generated by the `mix phx.digest` task,
  9. # which you should run after static files are built and
  10. # before starting your production server.
  11. config :podcast_feed, PodcastFeedWeb.Endpoint,
  12. url: [host: "example.com", port: 80],
  13. cache_static_manifest: "priv/static/cache_manifest.json"
  14. # Do not print debug messages in production
  15. config :logger, level: :info
  16. # ## SSL Support
  17. #
  18. # To get SSL working, you will need to add the `https` key
  19. # to the previous section and set your `:url` port to 443:
  20. #
  21. # config :podcast_feed, PodcastFeedWeb.Endpoint,
  22. # ...
  23. # url: [host: "example.com", port: 443],
  24. # https: [
  25. # port: 443,
  26. # cipher_suite: :strong,
  27. # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
  28. # certfile: System.get_env("SOME_APP_SSL_CERT_PATH"),
  29. # transport_options: [socket_opts: [:inet6]]
  30. # ]
  31. #
  32. # The `cipher_suite` is set to `:strong` to support only the
  33. # latest and more secure SSL ciphers. This means old browsers
  34. # and clients may not be supported. You can set it to
  35. # `:compatible` for wider support.
  36. #
  37. # `:keyfile` and `:certfile` expect an absolute path to the key
  38. # and cert in disk or a relative path inside priv, for example
  39. # "priv/ssl/server.key". For all supported SSL configuration
  40. # options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
  41. #
  42. # We also recommend setting `force_ssl` in your endpoint, ensuring
  43. # no data is ever sent via http, always redirecting to https:
  44. #
  45. # config :podcast_feed, PodcastFeedWeb.Endpoint,
  46. # force_ssl: [hsts: true]
  47. #
  48. # Check `Plug.SSL` for all available options in `force_ssl`.
  49. # Finally import the config/prod.secret.exs which loads secrets
  50. # and configuration from environment variables.
  51. import_config "prod.secret.exs"