mirror of
https://github.com/plausible/analytics.git
synced 2024-11-27 17:23:00 +03:00
9022234aa6
* added invoices section * fixed formatting * UI and code style improvements, paddle sandbox setup only on dev environment (fixed)
43 lines
984 B
Elixir
43 lines
984 B
Elixir
import Config
|
|
|
|
config :plausible,
|
|
ecto_repos: [Plausible.Repo, Plausible.ClickhouseRepo]
|
|
|
|
config :plausible, PlausibleWeb.Endpoint, pubsub_server: Plausible.PubSub
|
|
|
|
# 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,
|
|
paddle_api: Plausible.Billing.PaddleApi,
|
|
google_api: Plausible.Google.Api
|
|
|
|
config :plausible,
|
|
# 30 minutes
|
|
session_timeout: 1000 * 60 * 30,
|
|
session_length_minutes: 30
|
|
|
|
config :plausible, Plausible.ClickhouseRepo, loggers: [Ecto.LogEntry]
|
|
|
|
config :plausible, Plausible.Repo,
|
|
timeout: 300_000,
|
|
connect_timeout: 300_000,
|
|
handshake_timeout: 300_000
|
|
|
|
config :plausible, :user_agent_cache,
|
|
limit: 1000,
|
|
stats: false
|
|
|
|
import_config "#{config_env()}.exs"
|