2021-01-13 16:41:16 +03:00
|
|
|
import Config
|
2020-10-05 15:01:54 +03:00
|
|
|
|
2019-09-02 14:29:19 +03:00
|
|
|
config :plausible,
|
2021-01-13 16:41:16 +03:00
|
|
|
ecto_repos: [Plausible.Repo, Plausible.ClickhouseRepo]
|
2020-06-11 09:30:00 +03:00
|
|
|
|
2023-01-25 17:15:41 +03:00
|
|
|
config :plausible, PlausibleWeb.Endpoint,
|
|
|
|
pubsub_server: Plausible.PubSub,
|
|
|
|
render_errors: [
|
|
|
|
view: PlausibleWeb.ErrorView,
|
|
|
|
layout: {PlausibleWeb.LayoutView, "focus.html"},
|
|
|
|
accepts: ~w(html json)
|
|
|
|
]
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
# Configures Elixir's Logger
|
|
|
|
config :logger, :console,
|
|
|
|
format: "$time $metadata[$level] $message\n",
|
|
|
|
metadata: [:request_id]
|
|
|
|
|
|
|
|
# Use Jason for JSON parsing in Phoenix
|
|
|
|
config :phoenix, :json_library, Jason
|
|
|
|
|
|
|
|
config :ua_inspector,
|
|
|
|
database_path: "priv/ua_inspector"
|
|
|
|
|
|
|
|
config :ref_inspector,
|
|
|
|
database_path: "priv/ref_inspector"
|
|
|
|
|
|
|
|
config :plausible,
|
2019-11-20 11:42:45 +03:00
|
|
|
paddle_api: Plausible.Billing.PaddleApi,
|
|
|
|
google_api: Plausible.Google.Api
|
2019-09-02 14:29:19 +03:00
|
|
|
|
2019-12-03 12:42:17 +03:00
|
|
|
config :plausible,
|
2020-06-08 10:35:13 +03:00
|
|
|
# 30 minutes
|
|
|
|
session_timeout: 1000 * 60 * 30,
|
2020-05-18 12:44:52 +03:00
|
|
|
session_length_minutes: 30
|
2019-12-03 12:42:17 +03:00
|
|
|
|
2022-09-21 13:35:05 +03:00
|
|
|
config :fun_with_flags, :cache_bust_notifications, enabled: false
|
|
|
|
|
|
|
|
config :fun_with_flags, :persistence,
|
|
|
|
adapter: FunWithFlags.Store.Persistent.Ecto,
|
|
|
|
repo: Plausible.Repo
|
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
config :plausible, Plausible.ClickhouseRepo, loggers: [Ecto.LogEntry]
|
2020-06-02 13:37:38 +03:00
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
config :plausible, Plausible.Repo,
|
|
|
|
timeout: 300_000,
|
|
|
|
connect_timeout: 300_000,
|
2021-01-13 18:04:01 +03:00
|
|
|
handshake_timeout: 300_000
|
2020-08-28 15:00:16 +03:00
|
|
|
|
2022-11-16 12:06:23 +03:00
|
|
|
config :plausible,
|
|
|
|
sites_by_domain_cache_enabled: true,
|
|
|
|
sites_by_domain_cache_refresh_interval_max_jitter: :timer.seconds(5),
|
|
|
|
sites_by_domain_cache_refresh_interval: :timer.minutes(15)
|
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
import_config "#{config_env()}.exs"
|