Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / config / benchmark.exs
1 use Mix.Config
2
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,
6 http: [port: 4001],
7 url: [port: 4001],
8 server: true
9
10 # Disable captha for tests
11 config :pleroma, Pleroma.Captcha,
12 # It should not be enabled for automatic tests
13 enabled: false,
14 # A fake captcha service for tests
15 method: Pleroma.Captcha.Mock
16
17 # Print only warnings and errors during test
18 config :logger, level: :warn
19
20 config :pleroma, :auth, oauth_consumer_strategies: []
21
22 config :pleroma, Pleroma.Upload, filters: [], link_name: false
23
24 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
25
26 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test, enabled: true
27
28 config :pleroma, :instance,
29 email: "admin@example.com",
30 notify_email: "noreply@example.com",
31 skip_thread_containment: false,
32 federating: false,
33 external_user_synchronization: false
34
35 config :pleroma, :activitypub, sign_object_fetches: false
36
37 # Configure your database
38 config :pleroma, Pleroma.Repo,
39 adapter: Ecto.Adapters.Postgres,
40 username: "postgres",
41 password: "postgres",
42 database: "pleroma_test",
43 hostname: System.get_env("DB_HOST") || "localhost",
44 pool_size: 10
45
46 # Reduce hash rounds for testing
47 config :pbkdf2_elixir, rounds: 1
48
49 config :tesla, adapter: Tesla.Mock
50
51 config :pleroma, :rich_media,
52 enabled: false,
53 ignore_hosts: [],
54 ignore_tld: ["local", "localdomain", "lan"]
55
56 config :web_push_encryption, :vapid_details,
57 subject: "mailto:administrator@example.com",
58 public_key:
59 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
60 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
61
62 config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
63
64 config :pleroma_job_queue, disabled: true
65
66 config :pleroma, Pleroma.ScheduledActivity,
67 daily_user_limit: 2,
68 total_user_limit: 3,
69 enabled: false
70
71 config :pleroma, :rate_limit,
72 search: [{1000, 30}, {1000, 30}],
73 app_account_creation: {10_000, 5},
74 password_reset: {1000, 30}
75
76 config :pleroma, :http_security, report_uri: "https://endpoint.com"
77
78 config :pleroma, :http, send_user_agent: false
79
80 rum_enabled = System.get_env("RUM_ENABLED") == "true"
81 config :pleroma, :database, rum_enabled: rum_enabled
82 IO.puts("RUM enabled: #{rum_enabled}")
83
84 config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock