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, :console,
20 format: "\n[$level] $message\n"
22 config :pleroma, :fed_sockets,
24 connection_duration: 5,
27 config :pleroma, :auth, oauth_consumer_strategies: []
29 config :pleroma, Pleroma.Upload,
32 default_description: :filename
34 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
36 config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Test, enabled: true
38 config :pleroma, :instance,
39 email: "admin@example.com",
40 notify_email: "noreply@example.com",
41 skip_thread_containment: false,
43 external_user_synchronization: false,
44 static_dir: "test/instance_static/"
46 config :pleroma, :activitypub, sign_object_fetches: false
48 # Configure your database
49 config :pleroma, Pleroma.Repo,
50 adapter: Ecto.Adapters.Postgres,
53 database: "pleroma_test",
54 hostname: System.get_env("DB_HOST") || "localhost",
55 pool: Ecto.Adapters.SQL.Sandbox
57 # Reduce hash rounds for testing
58 config :pbkdf2_elixir, rounds: 1
60 config :tesla, adapter: Tesla.Mock
62 config :pleroma, :rich_media,
65 ignore_tld: ["local", "localdomain", "lan"]
67 config :pleroma, :instance,
68 multi_factor_authentication: [
80 config :web_push_encryption, :vapid_details,
81 subject: "mailto:administrator@example.com",
83 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
84 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
86 config :pleroma, Oban,
91 config :pleroma, Pleroma.ScheduledActivity,
96 config :pleroma, :rate_limit, %{}
98 config :pleroma, :http_security, report_uri: "https://endpoint.com"
100 config :pleroma, :http, send_user_agent: false
102 rum_enabled = System.get_env("RUM_ENABLED") == "true"
103 config :pleroma, :database, rum_enabled: rum_enabled
104 IO.puts("RUM enabled: #{rum_enabled}")
106 config :joken, default_signer: "yU8uHKq+yyAkZ11Hx//jcdacWc8yQ1bxAAGrplzB0Zwwjkp35v0RK9SO8WTPr6QZ"
108 config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
110 config :pleroma, :modules, runtime_dir: "test/fixtures/modules"
112 config :pleroma, Pleroma.Gun, Pleroma.GunMock
114 config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: true
116 config :pleroma, Pleroma.Plugs.RemoteIp, enabled: false
118 config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
120 config :pleroma, Pleroma.Uploaders.S3,
122 streaming_enabled: true,
125 config :tzdata, :autoupdate, :disabled
127 config :pleroma, :mrf, policies: []
129 if File.exists?("./config/test.secret.exs") do
130 import_config "test.secret.exs"
133 "You may want to create test.secret.exs to declare custom database connection parameters."