3 # We don't run a server during test. If one is required,
4 # you can enable the server option below.
5 config :pleroma, Pleroma.Web.Endpoint,
9 # Disable captha for tests
10 config :pleroma, Pleroma.Captcha,
11 # It should not be enabled for automatic tests
13 # A fake captcha service for tests
14 method: Pleroma.Captcha.Mock
16 # Print only warnings and errors during test
17 config :logger, level: :warn
19 config :pleroma, :auth, oauth_consumer_strategies: []
21 config :pleroma, Pleroma.Upload, filters: [], link_name: false
23 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
25 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test, enabled: true
27 config :pleroma, :instance,
28 email: "admin@example.com",
29 notify_email: "noreply@example.com",
30 skip_thread_containment: false,
32 external_user_synchronization: false
34 config :pleroma, :activitypub, sign_object_fetches: false
36 # Configure your database
37 config :pleroma, Pleroma.Repo,
38 adapter: Ecto.Adapters.Postgres,
41 database: "pleroma_benchmark",
42 hostname: System.get_env("DB_HOST") || "localhost",
43 port: System.get_env("DB_PORT") || "5432",
46 # Reduce hash rounds for testing
47 config :pleroma, :password, iterations: 1
49 config :tesla, adapter: Tesla.Mock
51 config :pleroma, :rich_media,
54 ignore_tld: ["local", "localdomain", "lan"]
56 config :web_push_encryption, :vapid_details,
57 subject: "mailto:administrator@example.com",
59 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
60 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
62 config :pleroma, Pleroma.ScheduledActivity,
67 config :pleroma, :rate_limit,
68 search: [{1000, 30}, {1000, 30}],
69 app_account_creation: {10_000, 5},
70 password_reset: {1000, 30}
72 config :pleroma, :http_security, report_uri: "https://endpoint.com"
74 config :pleroma, :http, send_user_agent: false
76 rum_enabled = System.get_env("RUM_ENABLED") == "true"
77 config :pleroma, :database, rum_enabled: rum_enabled
78 IO.puts("RUM enabled: #{rum_enabled}")
80 config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
82 if File.exists?("./config/benchmark.secret.exs") do
83 import_config "benchmark.secret.exs"
86 "You may want to create benchmark.secret.exs to declare custom database connection parameters."