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,
10 # Disable captha for tests
11 config :pleroma, Pleroma.Captcha,
12 # It should not be enabled for automatic tests
14 # A fake captcha service for tests
15 method: Pleroma.Captcha.Mock
17 # Print only warnings and errors during test
18 config :logger, level: :warn
20 config :pleroma, :auth, oauth_consumer_strategies: []
22 config :pleroma, Pleroma.Upload, filters: [], link_name: false
24 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
26 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test, enabled: true
28 config :pleroma, :instance,
29 email: "admin@example.com",
30 notify_email: "noreply@example.com",
31 skip_thread_containment: false,
34 config :pleroma, :activitypub, sign_object_fetches: false
36 # Configure your database
37 config :pleroma, Pleroma.Repo,
38 adapter: Ecto.Adapters.Postgres,
39 username: System.get_env("DB_USER") || "postgres",
40 database: System.get_env("DB_DATABASE") || "pleroma_test",
41 hostname: System.get_env("DB_HOST") || "localhost",
42 # username: "pleroma",
44 System.get_env("DB_PASS") ||
45 "cAUrGezwXjRwd/lIPzZAcwjb/hiZiGi3FIaSGy9l/XsTcGA61FMy7eCBiRcg1DyQ",
50 # Reduce hash rounds for testing
51 config :pbkdf2_elixir, rounds: 1
53 config :tesla, adapter: Tesla.Mock
55 config :pleroma, :rich_media,
58 ignore_tld: ["local", "localdomain", "lan"]
60 config :web_push_encryption, :vapid_details,
61 subject: "mailto:administrator@example.com",
63 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
64 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
66 config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
68 config :pleroma_job_queue, disabled: true
70 config :pleroma, Pleroma.ScheduledActivity,
75 config :pleroma, :rate_limit,
76 search: [{1000, 30}, {1000, 30}],
77 app_account_creation: {10_000, 5},
78 password_reset: {1000, 30}
80 config :pleroma, :http_security, report_uri: "https://endpoint.com"
82 config :pleroma, :http, send_user_agent: false
84 rum_enabled = System.get_env("RUM_ENABLED") == "true"
85 config :pleroma, :database, rum_enabled: rum_enabled
86 IO.puts("RUM enabled: #{rum_enabled}")
88 config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock