Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2KB

  1. # Pleroma instance configuration
  2. # NOTE: This file should not be committed to a repo or otherwise made public
  3. # without removing sensitive information.
  4. <%= if Code.ensure_loaded?(Config) or not Code.ensure_loaded?(Mix.Config) do
  5. "import Config"
  6. else
  7. "use Mix.Config"
  8. end %>
  9. config :pleroma, Pleroma.Web.Endpoint,
  10. url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
  11. http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
  12. secret_key_base: "<%= secret %>",
  13. signing_salt: "<%= signing_salt %>"
  14. config :pleroma, :instance,
  15. name: "<%= name %>",
  16. email: "<%= email %>",
  17. notify_email: "<%= notify_email %>",
  18. limit: 5000,
  19. registrations_open: true
  20. config :pleroma, :media_proxy,
  21. enabled: false,
  22. redirect_on_failure: true
  23. #base_url: "https://cache.pleroma.social"
  24. config :pleroma, Pleroma.Repo,
  25. adapter: Ecto.Adapters.Postgres,
  26. username: "<%= dbuser %>",
  27. password: "<%= dbpass %>",
  28. database: "<%= dbname %>",
  29. hostname: "<%= dbhost %>",
  30. pool_size: 10
  31. # Configure web push notifications
  32. config :web_push_encryption, :vapid_details,
  33. subject: "mailto:<%= email %>",
  34. public_key: "<%= web_push_public_key %>",
  35. private_key: "<%= web_push_private_key %>"
  36. config :pleroma, :database, rum_enabled: <%= rum_enabled %>
  37. config :pleroma, :instance, static_dir: "<%= static_dir %>"
  38. config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
  39. # Enable Strict-Transport-Security once SSL is working:
  40. # config :pleroma, :http_security,
  41. # sts: true
  42. # Configure S3 support if desired.
  43. # The public S3 endpoint is different depending on region and provider,
  44. # consult your S3 provider's documentation for details on what to use.
  45. #
  46. # config :pleroma, Pleroma.Uploaders.S3,
  47. # bucket: "some-bucket",
  48. # public_endpoint: "https://s3.amazonaws.com"
  49. #
  50. # Configure S3 credentials:
  51. # config :ex_aws, :s3,
  52. # access_key_id: "xxxxxxxxxxxxx",
  53. # secret_access_key: "yyyyyyyyyyyy",
  54. # region: "us-east-1",
  55. # scheme: "https://"
  56. #
  57. # For using third-party S3 clones like wasabi, also do:
  58. # config :ex_aws, :s3,
  59. # host: "s3.wasabisys.com"
  60. config :joken, default_signer: "<%= jwt_secret %>"
  61. config :pleroma, configurable_from_database: <%= db_configurable? %>