mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
e373799b01
Getting this error when running the release: ERROR! the application :fun_with_flags has a different value set for key :persistence during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behaviour than expected: * Compile time value was not set * Runtime value was set to: [adapter: FunWithFlags.Store.Persistent.Ecto, repo: Plausible.Repo]
45 lines
1.1 KiB
Elixir
45 lines
1.1 KiB
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 :fun_with_flags, :cache_bust_notifications, enabled: false
|
|
|
|
config :fun_with_flags, :persistence,
|
|
adapter: FunWithFlags.Store.Persistent.Ecto,
|
|
repo: Plausible.Repo
|
|
|
|
config :plausible, Plausible.ClickhouseRepo, loggers: [Ecto.LogEntry]
|
|
|
|
config :plausible, Plausible.Repo,
|
|
timeout: 300_000,
|
|
connect_timeout: 300_000,
|
|
handshake_timeout: 300_000
|
|
|
|
import_config "#{config_env()}.exs"
|