mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
1c5c4a25aa
* Implement basic HelpScout integration * Set 127.0.0.1 as a default customer IP in `Plans.with_prices/2` * Use `is_nil/1` instead of `... == nil` (h/t @aerosol) * Use `Path.join/1,2` to build API URLs a bit more safely (h/t @aerosol) * Check for locked sites entirely within query logic * Move conditional start of HelpScout vault to compile-time * Include customer_id in error sent to Sentry * Use `Plug.Crypto.secure_compare/2` for constant-time signature comparison * Refactor token request function * Use `Path.join/1` in one more spot * Use route helper to build CRM URL
49 lines
1.2 KiB
Elixir
49 lines
1.2 KiB
Elixir
import Config
|
|
|
|
# We don't run a server during test. If one is required,
|
|
# you can enable the server option below.
|
|
config :plausible, PlausibleWeb.Endpoint, server: false
|
|
|
|
config :bcrypt_elixir, :log_rounds, 4
|
|
|
|
config :plausible, Plausible.Repo, pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
config :plausible, Plausible.ClickhouseRepo,
|
|
loggers: [Ecto.LogEntry],
|
|
pool_size: 15
|
|
|
|
config :plausible, Plausible.Mailer, adapter: Bamboo.TestAdapter
|
|
|
|
config :plausible,
|
|
paddle_api: Plausible.PaddleApi.Mock,
|
|
google_api: Plausible.Google.API.Mock
|
|
|
|
config :bamboo, :refute_timeout, 10
|
|
|
|
config :plausible,
|
|
session_timeout: 0,
|
|
http_impl: Plausible.HTTPClient.Mock
|
|
|
|
config :plausible, Plausible.Cache, enabled: false
|
|
|
|
config :ex_money, api_module: Plausible.ExchangeRateMock
|
|
|
|
config :plausible, Plausible.Ingestion.Counters, enabled: false
|
|
|
|
config :plausible, Oban, testing: :manual
|
|
|
|
config :plausible, Plausible.Verification.Checks.FetchBody,
|
|
req_opts: [
|
|
plug: {Req.Test, Plausible.Verification.Checks.FetchBody}
|
|
]
|
|
|
|
config :plausible, Plausible.Verification.Checks.Installation,
|
|
req_opts: [
|
|
plug: {Req.Test, Plausible.Verification.Checks.Installation}
|
|
]
|
|
|
|
config :plausible, Plausible.HelpScout,
|
|
req_opts: [
|
|
plug: {Req.Test, Plausible.HelpScout}
|
|
]
|