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.

89 lines
2.5KB

  1. import Config
  2. # We don't run a server during test. If one is required,
  3. # you can enable the server option below.
  4. config :pleroma, Pleroma.Web.Endpoint,
  5. http: [port: 4001],
  6. url: [port: 4001],
  7. server: true
  8. # Disable captha for tests
  9. config :pleroma, Pleroma.Captcha,
  10. # It should not be enabled for automatic tests
  11. enabled: false,
  12. # A fake captcha service for tests
  13. method: Pleroma.Captcha.Mock
  14. # Print only warnings and errors during test
  15. config :logger, level: :warn
  16. config :pleroma, :auth, oauth_consumer_strategies: []
  17. config :pleroma, Pleroma.Upload, filters: [], link_name: false
  18. config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
  19. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test, enabled: true
  20. config :pleroma, :instance,
  21. email: "admin@example.com",
  22. notify_email: "noreply@example.com",
  23. skip_thread_containment: false,
  24. federating: false,
  25. external_user_synchronization: false
  26. config :pleroma, :activitypub, sign_object_fetches: false
  27. # Configure your database
  28. config :pleroma, Pleroma.Repo,
  29. adapter: Ecto.Adapters.Postgres,
  30. username: "postgres",
  31. password: "postgres",
  32. database: "pleroma_benchmark",
  33. hostname: System.get_env("DB_HOST") || "localhost",
  34. pool_size: 10
  35. # Reduce hash rounds for testing
  36. config :pbkdf2_elixir, rounds: 1
  37. config :tesla, adapter: Tesla.Mock
  38. config :pleroma, :rich_media,
  39. enabled: false,
  40. ignore_hosts: [],
  41. ignore_tld: ["local", "localdomain", "lan"]
  42. config :web_push_encryption, :vapid_details,
  43. subject: "mailto:administrator@example.com",
  44. public_key:
  45. "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
  46. private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
  47. config :pleroma, Pleroma.ScheduledActivity,
  48. daily_user_limit: 2,
  49. total_user_limit: 3,
  50. enabled: false
  51. config :pleroma, :rate_limit,
  52. search: [{1000, 30}, {1000, 30}],
  53. app_account_creation: {10_000, 5},
  54. password_reset: {1000, 30}
  55. config :pleroma, :http_security, report_uri: "https://endpoint.com"
  56. config :pleroma, :http, send_user_agent: false
  57. rum_enabled = System.get_env("RUM_ENABLED") == "true"
  58. config :pleroma, :database, rum_enabled: rum_enabled
  59. IO.puts("RUM enabled: #{rum_enabled}")
  60. config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
  61. if File.exists?("./config/benchmark.secret.exs") do
  62. import_config "benchmark.secret.exs"
  63. else
  64. IO.puts(
  65. "You may want to create benchmark.secret.exs to declare custom database connection parameters."
  66. )
  67. end