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,
|
2023-02-12 19:50:57 +03:00
|
|
|
ecto_repos: [Plausible.Repo, Plausible.IngestRepo]
|
2020-06-11 09:30:00 +03:00
|
|
|
|
2023-01-25 17:15:41 +03:00
|
|
|
config :plausible, PlausibleWeb.Endpoint,
|
2023-06-22 10:00:07 +03:00
|
|
|
# Does not to have to be secret, as per: https://github.com/phoenixframework/phoenix/issues/2146
|
|
|
|
live_view: [signing_salt: "f+bZg/crMtgjZJJY7X6OwIWc3XJR2C5Y"],
|
2023-01-25 17:15:41 +03:00
|
|
|
pubsub_server: Plausible.PubSub,
|
|
|
|
render_errors: [
|
|
|
|
view: PlausibleWeb.ErrorView,
|
2023-05-16 11:52:17 +03:00
|
|
|
layout: {PlausibleWeb.LayoutView, "base_error.html"},
|
2023-01-25 17:15:41 +03:00
|
|
|
accepts: ~w(html json)
|
|
|
|
]
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
# Use Jason for JSON parsing in Phoenix
|
|
|
|
config :phoenix, :json_library, Jason
|
|
|
|
|
2023-11-01 17:27:29 +03:00
|
|
|
config :esbuild,
|
|
|
|
version: "0.17.11",
|
|
|
|
default: [
|
|
|
|
args:
|
2024-08-21 15:40:12 +03:00
|
|
|
~w(js/app.js js/dashboard.tsx js/embed.host.js js/embed.content.js --bundle --target=es2017 --loader:.js=jsx --outdir=../priv/static/js --define:BUILD_EXTRA=true),
|
2023-11-01 17:27:29 +03:00
|
|
|
cd: Path.expand("../assets", __DIR__),
|
|
|
|
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
|
|
|
|
]
|
|
|
|
|
|
|
|
config :tailwind,
|
2024-08-13 11:39:35 +03:00
|
|
|
version: "3.4.7",
|
2023-11-01 17:27:29 +03:00
|
|
|
default: [
|
|
|
|
args: ~w(
|
|
|
|
--config=tailwind.config.js
|
|
|
|
--input=css/app.css
|
|
|
|
--output=../priv/static/css/app.css
|
|
|
|
),
|
|
|
|
cd: Path.expand("../assets", __DIR__)
|
|
|
|
]
|
|
|
|
|
2019-09-02 14:29:19 +03:00
|
|
|
config :ua_inspector,
|
2023-08-14 17:03:12 +03:00
|
|
|
database_path: "priv/ua_inspector",
|
2024-07-01 10:30:09 +03:00
|
|
|
remote_release: "6.3.2"
|
2019-09-02 14:29:19 +03:00
|
|
|
|
|
|
|
config :ref_inspector,
|
|
|
|
database_path: "priv/ref_inspector"
|
|
|
|
|
|
|
|
config :plausible,
|
2019-11-20 11:42:45 +03:00
|
|
|
paddle_api: Plausible.Billing.PaddleApi,
|
2024-03-12 20:08:25 +03:00
|
|
|
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
|
|
|
|
2024-01-30 12:11:29 +03:00
|
|
|
config :plausible, Plausible.Cache, enabled: true
|
2022-11-16 12:06:23 +03:00
|
|
|
|
2023-02-23 16:34:24 +03:00
|
|
|
config :plausible, Plausible.Ingestion.Counters, enabled: true
|
|
|
|
|
2023-05-23 13:08:09 +03:00
|
|
|
config :ex_cldr,
|
|
|
|
default_locale: "en",
|
|
|
|
default_backend: Plausible.Cldr
|
|
|
|
|
2024-03-18 12:10:20 +03:00
|
|
|
config :sentry,
|
|
|
|
enable_source_code_context: true,
|
|
|
|
root_source_code_path: [File.cwd!()]
|
|
|
|
|
2021-01-13 16:41:16 +03:00
|
|
|
import_config "#{config_env()}.exs"
|