logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

prod.exs (2546B)


  1. import 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. # Pleroma.Web.Endpoint.load_from_system_env/1 dynamically.
  6. # Any dynamic configuration should be moved to such function.
  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 phoenix.digest task
  14. # which you typically run after static files are built.
  15. config :pleroma, Pleroma.Web.Endpoint,
  16. http: [port: 4000],
  17. protocol: "http"
  18. config :phoenix, serve_endpoints: true
  19. # Do not print debug messages in production
  20. config :logger, Logger.Backends.Console, level: :info
  21. config :logger, :console, level: :info
  22. config :logger, :ex_syslogger, level: :info
  23. # ## SSL Support
  24. #
  25. # To get SSL working, you will need to add the `https` key
  26. # to the previous section and set your `:url` port to 443:
  27. #
  28. # config :pleroma, Pleroma.Web.Endpoint,
  29. # ...
  30. # url: [host: "example.com", port: 443],
  31. # https: [:inet6,
  32. # port: 443,
  33. # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
  34. # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
  35. #
  36. # Where those two env variables return an absolute path to
  37. # the key and cert in disk or a relative path inside priv,
  38. # for example "priv/ssl/server.key".
  39. #
  40. # We also recommend setting `force_ssl`, ensuring no data is
  41. # ever sent via http, always redirecting to https:
  42. #
  43. # config :pleroma, Pleroma.Web.Endpoint,
  44. # force_ssl: [hsts: true]
  45. #
  46. # Check `Plug.SSL` for all available options in `force_ssl`.
  47. # ## Using releases
  48. #
  49. # If you are doing OTP releases, you need to instruct Phoenix
  50. # to start the server for all endpoints:
  51. #
  52. # config :phoenix, :serve_endpoints, true
  53. #
  54. # Alternatively, you can configure exactly which server to
  55. # start per endpoint:
  56. #
  57. # config :pleroma, Pleroma.Web.Endpoint, server: true
  58. #
  59. # Finally import the config/prod.secret.exs
  60. # which should be versioned separately.
  61. if File.exists?("./config/prod.secret.exs") do
  62. import_config "prod.secret.exs"
  63. else
  64. "`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
  65. |> IO.warn([])
  66. end
  67. if File.exists?("./config/prod.exported_from_db.secret.exs"),
  68. do: import_config("prod.exported_from_db.secret.exs")