prod.exs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. use Mix.Config
  2. # For production, we often load configuration from external
  3. # sources, such as your system environment. For this reason,
  4. # you won't find the :http configuration below, but set inside
  5. # EnchufeWeb.Endpoint.init/2 when load_from_system_env is
  6. # true. Any dynamic configuration should be done there.
  7. #
  8. # Don't forget to configure the url host to something meaningful,
  9. # Phoenix uses this information when generating URLs.
  10. #
  11. # Finally, we also include the path to a cache manifest
  12. # containing the digested version of static files. This
  13. # manifest is generated by the mix phx.digest task
  14. # which you typically run after static files are built.
  15. config :enchufe, EnchufeWeb.Endpoint,
  16. load_from_system_env: true,
  17. url: [host: "example.com", port: 80],
  18. cache_static_manifest: "priv/static/cache_manifest.json"
  19. # Do not print debug messages in production
  20. config :logger, level: :info
  21. # ## SSL Support
  22. #
  23. # To get SSL working, you will need to add the `https` key
  24. # to the previous section and set your `:url` port to 443:
  25. #
  26. # config :enchufe, EnchufeWeb.Endpoint,
  27. # ...
  28. # url: [host: "example.com", port: 443],
  29. # https: [:inet6,
  30. # port: 443,
  31. # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
  32. # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
  33. #
  34. # Where those two env variables return an absolute path to
  35. # the key and cert in disk or a relative path inside priv,
  36. # for example "priv/ssl/server.key".
  37. #
  38. # We also recommend setting `force_ssl`, ensuring no data is
  39. # ever sent via http, always redirecting to https:
  40. #
  41. # config :enchufe, EnchufeWeb.Endpoint,
  42. # force_ssl: [hsts: true]
  43. #
  44. # Check `Plug.SSL` for all available options in `force_ssl`.
  45. # ## Using releases
  46. #
  47. # If you are doing OTP releases, you need to instruct Phoenix
  48. # to start the server for all endpoints:
  49. #
  50. # config :phoenix, :serve_endpoints, true
  51. #
  52. # Alternatively, you can configure exactly which server to
  53. # start per endpoint:
  54. #
  55. # config :enchufe, EnchufeWeb.Endpoint, server: true
  56. #
  57. # Finally import the config/prod.secret.exs
  58. # which should be versioned separately.
  59. import_config "prod.secret.exs"