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,
33 external_user_synchronization: false
35 config :pleroma, :activitypub, sign_object_fetches: false
37 # Configure your database
38 config :pleroma, Pleroma.Repo,
39 adapter: Ecto.Adapters.Postgres,
40 username: System.get_env("DB_USER") || "postgres",
41 database: System.get_env("DB_DATABASE") || "pleroma_test",
42 hostname: System.get_env("DB_HOST") || "localhost",
43 # username: "pleroma",
45 System.get_env("DB_PASS") ||
46 "cAUrGezwXjRwd/lIPzZAcwjb/hiZiGi3FIaSGy9l/XsTcGA61FMy7eCBiRcg1DyQ",
51 # Reduce hash rounds for testing
52 config :pbkdf2_elixir, rounds: 1
54 config :tesla, adapter: Tesla.Mock
56 config :pleroma, :rich_media,
59 ignore_tld: ["local", "localdomain", "lan"]
61 config :web_push_encryption, :vapid_details,
62 subject: "mailto:administrator@example.com",
64 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
65 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
67 config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
69 config :pleroma_job_queue, disabled: true
71 config :pleroma, Pleroma.ScheduledActivity,
76 config :pleroma, :rate_limit,
77 search: [{1000, 30}, {1000, 30}],
78 app_account_creation: {10_000, 5},
79 password_reset: {1000, 30}
81 config :pleroma, :http_security, report_uri: "https://endpoint.com"
83 config :pleroma, :http, send_user_agent: false
85 rum_enabled = System.get_env("RUM_ENABLED") == "true"
86 config :pleroma, :database, rum_enabled: rum_enabled
87 IO.puts("RUM enabled: #{rum_enabled}")
89 config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock