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.

83 line
2.5KB

  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. # Configure web push notifications
  31. config :web_push_encryption, :vapid_details,
  32. subject: "mailto:<%= email %>",
  33. public_key: "<%= web_push_public_key %>",
  34. private_key: "<%= web_push_private_key %>"
  35. config :pleroma, :database, rum_enabled: <%= rum_enabled %>
  36. config :pleroma, :instance, static_dir: "<%= static_dir %>"
  37. config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
  38. # Enable Strict-Transport-Security once SSL is working:
  39. # config :pleroma, :http_security,
  40. # sts: true
  41. # Configure S3 support if desired.
  42. # The public S3 endpoint (base_url) is different depending on region and provider,
  43. # consult your S3 provider's documentation for details on what to use.
  44. #
  45. # config :pleroma, Pleroma.Upload,
  46. # uploader: Pleroma.Uploaders.S3,
  47. # base_url: "https://s3.amazonaws.com"
  48. #
  49. # config :pleroma, Pleroma.Uploaders.S3,
  50. # bucket: "some-bucket",
  51. # bucket_namespace: "my-namespace",
  52. # truncated_namespace: nil,
  53. # streaming_enabled: true
  54. #
  55. # Configure S3 credentials:
  56. # config :ex_aws, :s3,
  57. # access_key_id: "xxxxxxxxxxxxx",
  58. # secret_access_key: "yyyyyyyyyyyy",
  59. # region: "us-east-1",
  60. # scheme: "https://"
  61. #
  62. # For using third-party S3 clones like wasabi, also do:
  63. # config :ex_aws, :s3,
  64. # host: "s3.wasabisys.com"
  65. config :joken, default_signer: "<%= jwt_secret %>"
  66. config :pleroma, configurable_from_database: <%= db_configurable? %>
  67. <%= if Kernel.length(upload_filters) > 0 do
  68. "config :pleroma, Pleroma.Upload, filters: #{inspect(upload_filters)}"
  69. end %>