lalabuy948 / PhoenixAnalytics

📊 Plug and play analytics for Phoenix applications.
https://theindiestack.com/analytics
Apache License 2.0
270 stars 10 forks source link

Add support for distributed apps #10

Closed lalabuy948 closed 1 month ago

lalabuy948 commented 2 months ago

[!NOTE] In case you would like to enable it back you can optionally add this line to the config

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  cache_ttl: System.get_env("CACHE_TTL") || 120 # seconds # <- this one

[!IMPORTANT]
Breaking changes

[!NOTE]
The only thing you need to enable Postgres backend to add one line to config:

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  postgres_conn: "dbname=postgres user=phoenix password=analytics host=localhost" # <- this one

Here is full list of Postgres parameters.