Skip to content
Snippets Groups Projects
Unverified Commit 4ff25f68 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

Postgres socket authentication (#1052)


* Allow to connect to postgres via socket auth

* Add changelog entry for new env-vars

Co-authored-by: default avatarUku Taht <Uku.taht@gmail.com>
parent 55030b83
Branches
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file. ...@@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file.
- New parameter `metrics` for the `/api/v1/stats/timeseries` endpoint plausible/analytics#952 - New parameter `metrics` for the `/api/v1/stats/timeseries` endpoint plausible/analytics#952
- CSV export now includes pageviews, bounce rate and visit duration in addition to visitors plausible/analytics#952 - CSV export now includes pageviews, bounce rate and visit duration in addition to visitors plausible/analytics#952
- Send stats to multiple dashboards by configuring a comma-separated list of domains plausible/analytics#968 - Send stats to multiple dashboards by configuring a comma-separated list of domains plausible/analytics#968
- To authenticate against a local postgresql via socket authentication, the environment-variables
`DATABASE_SOCKET_DIR` & `DATABASE_NAME` were added.
- Time on Page metric available in detailed Top Pages report plausible/analytics#1007 - Time on Page metric available in detailed Top Pages report plausible/analytics#1007
- Glob (wildcard) based page, entry page and exit page filters plausible/analytics#1067 - Glob (wildcard) based page, entry page and exit page filters plausible/analytics#1067
- Exclusion filters for page, entry page and exit page filters plausible/analytics#1067 - Exclusion filters for page, entry page and exit page filters plausible/analytics#1067
......
...@@ -109,8 +109,16 @@ config :plausible, PlausibleWeb.Endpoint, ...@@ -109,8 +109,16 @@ config :plausible, PlausibleWeb.Endpoint,
http: [port: port], http: [port: port],
secret_key_base: secret_key_base secret_key_base: secret_key_base
case System.get_env("DATABASE_SOCKET_DIR", "") do
"" ->
config :plausible, Plausible.Repo, url: db_url config :plausible, Plausible.Repo, url: db_url
x ->
config :plausible, Plausible.Repo,
socket_dir: x,
database: System.get_env("DATABASE_NAME")
end
config :sentry, config :sentry,
dsn: sentry_dsn, dsn: sentry_dsn,
environment_name: env, environment_name: env,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment