logo

pleroma

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

dokku.exs (810B)


  1. import Config
  2. config :pleroma, Pleroma.Web.Endpoint,
  3. http: [
  4. port: String.to_integer(System.get_env("PORT") || "4000"),
  5. protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
  6. ],
  7. protocol: "http",
  8. secure_cookie_flag: false,
  9. url: [host: System.get_env("APP_HOST"), scheme: "https", port: 443],
  10. secret_key_base: "+S+ULgf7+N37c/lc9K66SMphnjQIRGklTu0BRr2vLm2ZzvK0Z6OH/PE77wlUNtvP"
  11. database_url =
  12. System.get_env("DATABASE_URL") ||
  13. raise """
  14. environment variable DATABASE_URL is missing.
  15. For example: ecto://USER:PASS@HOST/DATABASE
  16. """
  17. config :pleroma, Pleroma.Repo,
  18. # ssl: true,
  19. url: database_url,
  20. pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
  21. config :pleroma, :instance, name: "#{System.get_env("APP_NAME")} CI Instance"