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
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
config :plausible, PlausibleWeb.Endpoint, pubsub_server: Plausible.PubSub
|
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
|
|
|
|
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
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
import_config "#{config_env()}.exs"
|