Local copy of Pleroma, an ActivityPub server software. Contains modifications running live on fedi.underscore.world
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.

sample_config.eex 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. dynamic_configuration: <%= db_configurable? %>
  21. config :pleroma, :media_proxy,
  22. enabled: false,
  23. redirect_on_failure: true
  24. #base_url: "https://cache.pleroma.social"
  25. config :pleroma, Pleroma.Repo,
  26. adapter: Ecto.Adapters.Postgres,
  27. username: "<%= dbuser %>",
  28. password: "<%= dbpass %>",
  29. database: "<%= dbname %>",
  30. hostname: "<%= dbhost %>",
  31. pool_size: 10
  32. # Configure web push notifications
  33. config :web_push_encryption, :vapid_details,
  34. subject: "mailto:<%= email %>",
  35. public_key: "<%= web_push_public_key %>",
  36. private_key: "<%= web_push_private_key %>"
  37. config :pleroma, :database, rum_enabled: <%= rum_enabled %>
  38. config :pleroma, :instance, static_dir: "<%= static_dir %>"
  39. config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
  40. # Enable Strict-Transport-Security once SSL is working:
  41. # config :pleroma, :http_security,
  42. # sts: true
  43. # Configure S3 support if desired.
  44. # The public S3 endpoint is different depending on region and provider,
  45. # consult your S3 provider's documentation for details on what to use.
  46. #
  47. # config :pleroma, Pleroma.Uploaders.S3,
  48. # bucket: "some-bucket",
  49. # public_endpoint: "https://s3.amazonaws.com"
  50. #
  51. # Configure S3 credentials:
  52. # config :ex_aws, :s3,
  53. # access_key_id: "xxxxxxxxxxxxx",
  54. # secret_access_key: "yyyyyyyyyyyy",
  55. # region: "us-east-1",
  56. # scheme: "https://"
  57. #
  58. # For using third-party S3 clones like wasabi, also do:
  59. # config :ex_aws, :s3,
  60. # host: "s3.wasabisys.com"
  61. config :joken, default_signer: "<%= jwt_secret %>"