prod.exs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 :vaccins, VaccinsWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
  12. # Do not print debug messages in production
  13. config :logger, level: :info
  14. # ## SSL Support
  15. #
  16. # To get SSL working, you will need to add the `https` key
  17. # to the previous section and set your `:url` port to 443:
  18. #
  19. # config :vaccins, VaccinsWeb.Endpoint,
  20. # ...
  21. # url: [host: "example.com", port: 443],
  22. # https: [
  23. # port: 443,
  24. # cipher_suite: :strong,
  25. # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
  26. # certfile: System.get_env("SOME_APP_SSL_CERT_PATH"),
  27. # transport_options: [socket_opts: [:inet6]]
  28. # ]
  29. #
  30. # The `cipher_suite` is set to `:strong` to support only the
  31. # latest and more secure SSL ciphers. This means old browsers
  32. # and clients may not be supported. You can set it to
  33. # `:compatible` for wider support.
  34. #
  35. # `:keyfile` and `:certfile` expect an absolute path to the key
  36. # and cert in disk or a relative path inside priv, for example
  37. # "priv/ssl/server.key". For all supported SSL configuration
  38. # options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1
  39. #
  40. # We also recommend setting `force_ssl` in your endpoint, ensuring
  41. # no data is ever sent via http, always redirecting to https:
  42. #
  43. # config :vaccins, VaccinsWeb.Endpoint,
  44. # force_ssl: [hsts: true]
  45. #
  46. # Check `Plug.SSL` for all available options in `force_ssl`.
  47. # Finally import the config/prod.secret.exs which loads secrets
  48. # and configuration from environment variables.
  49. import_config "prod.secret.exs"