2021-01-13 16:41:16 +03:00
|
|
|
import Config
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
2021-01-13 17:15:03 +03:00
|
|
|
config :plausible, PlausibleWeb.Endpoint, server: false
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
config :bcrypt_elixir, :log_rounds, 4
|
|
|
|
|
2021-01-13 18:04:01 +03:00
|
|
|
config :plausible, Plausible.Repo, pool: Ecto.Adapters.SQL.Sandbox
|
2020-05-07 14:28:41 +03:00
|
|
|
|
2020-09-17 16:36:01 +03:00
|
|
|
config :plausible, Plausible.ClickhouseRepo,
|
|
|
|
loggers: [Ecto.LogEntry],
|
2021-01-13 17:15:03 +03:00
|
|
|
pool_size: 5
|
2020-06-11 09:30:00 +03:00
|
|
|
|
2020-05-26 16:09:34 +03:00
|
|
|
config :plausible, Plausible.Mailer, adapter: Bamboo.TestAdapter
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
config :plausible,
|
2019-11-20 11:42:45 +03:00
|
|
|
paddle_api: Plausible.PaddleApi.Mock,
|
|
|
|
google_api: Plausible.Google.Api.Mock
|
2019-12-03 12:42:17 +03:00
|
|
|
|
2022-08-16 10:55:46 +03:00
|
|
|
config :plausible, :google,
|
|
|
|
client_id: "fake_client_id",
|
|
|
|
client_secret: "fake_client_secret"
|
|
|
|
|
2021-12-06 15:22:18 +03:00
|
|
|
config :bamboo, :refute_timeout, 10
|
|
|
|
|
2022-07-28 15:59:39 +03:00
|
|
|
geolix_sample_lookup = %{
|
|
|
|
city: %{geoname_id: 2_988_507, names: %{en: "Paris"}},
|
|
|
|
continent: %{code: "EU", geoname_id: 6_255_148, names: %{en: "Europe"}},
|
|
|
|
country: %{
|
|
|
|
geoname_id: 3_017_382,
|
|
|
|
is_in_european_union: true,
|
|
|
|
iso_code: "FR",
|
|
|
|
names: %{en: "France"}
|
|
|
|
},
|
|
|
|
ip_address: {2, 2, 2, 2},
|
|
|
|
location: %{
|
|
|
|
latitude: 48.8566,
|
|
|
|
longitude: 2.35222,
|
|
|
|
time_zone: "Europe/Paris",
|
|
|
|
weather_code: "FRXX0076"
|
|
|
|
},
|
|
|
|
postal: %{code: "75000"},
|
|
|
|
subdivisions: [
|
|
|
|
%{geoname_id: 3_012_874, iso_code: "IDF", names: %{en: "Île-de-France"}},
|
|
|
|
%{geoname_id: 2_968_815, iso_code: "75", names: %{en: "Paris"}}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2020-06-12 09:51:45 +03:00
|
|
|
config :geolix,
|
|
|
|
databases: [
|
|
|
|
%{
|
2021-11-23 12:39:09 +03:00
|
|
|
id: :geolocation,
|
2020-06-12 09:51:45 +03:00
|
|
|
adapter: Geolix.Adapter.Fake,
|
2021-05-21 14:57:00 +03:00
|
|
|
data: %{
|
|
|
|
{1, 1, 1, 1} => %{country: %{iso_code: "US"}},
|
2022-07-28 15:59:39 +03:00
|
|
|
{2, 2, 2, 2} => geolix_sample_lookup,
|
2022-01-18 19:23:26 +03:00
|
|
|
{1, 1, 1, 1, 1, 1, 1, 1} => %{country: %{iso_code: "US"}},
|
2023-01-03 16:35:23 +03:00
|
|
|
{0, 0, 0, 0} => %{country: %{iso_code: "ZZ"}, city: %{geoname_id: 123_123}},
|
|
|
|
{0, 0, 0, 1} => %{country: %{iso_code: "XX"}, subdivisions: [%{iso_code: "IDF"}]},
|
|
|
|
{0, 0, 0, 2} => %{country: %{iso_code: "T1"}, subdivisions: [%{}, %{iso_code: "IDF"}]}
|
2021-05-21 14:57:00 +03:00
|
|
|
}
|
2020-06-12 09:51:45 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2019-12-03 12:42:17 +03:00
|
|
|
config :plausible,
|
2022-09-23 13:22:43 +03:00
|
|
|
session_timeout: 0,
|
2022-11-16 12:06:23 +03:00
|
|
|
http_impl: Plausible.HTTPClient.Mock,
|
|
|
|
sites_by_domain_cache_enabled: false
|