Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Configure database SSL
Uku Taht46ca66805a54
diff --git a/config/runtime.exs b/config/runtime.exsindex 2699361bad..137dc75a30 100644--- a/config/runtime.exs+++ b/config/runtime.exs@@ -42,6 +42,9 @@ db_url ="postgres://postgres:postgres@plausible_db:5432/plausible_db")+db_ssl_enabled =+ get_var_from_path_or_env(config_dir, "DATABASE_SSL", "false") |> String.to_existing_atom()+db_socket_dir = get_var_from_path_or_env(config_dir, "DATABASE_SOCKET_DIR")admin_user = get_var_from_path_or_env(config_dir, "ADMIN_USER_NAME")@@ -192,7 +195,9 @@ config :plausible, PlausibleWeb.Endpoint,secret_key_base: secret_key_baseif is_nil(db_socket_dir) do- config :plausible, Plausible.Repo, url: db_url+ config :plausible, Plausible.Repo,+ url: db_url,+ ssl: db_ssl_enabledelseconfig :plausible, Plausible.Repo,socket_dir: db_socket_dir,