optional ipv6 for repo (#1661)

* optional ipv6 for repo

* changelog
This commit is contained in:
Eric Sullivan 2022-02-16 22:26:26 -05:00 committed by GitHub
parent f2eb9abfc7
commit 0ac26cb0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- If a session was started without a screen_size it is updated if an event with screen_size occurs - If a session was started without a screen_size it is updated if an event with screen_size occurs
- Added `LISTEN_IP` configuration parameter plausible/analytics#1189 - Added `LISTEN_IP` configuration parameter plausible/analytics#1189
- The breakdown endpoint with the property query `property=event:goal` returns custom goal properties (within `props`) - The breakdown endpoint with the property query `property=event:goal` returns custom goal properties (within `props`)
- Added IPv6 Ecto support (via the environment-variable `ECTO_IPV6`)
### Fixed ### Fixed
- UI fix where multi-line text in pills would not be underlined properly on small screens. - UI fix where multi-line text in pills would not be underlined properly on small screens.

View File

@ -207,8 +207,12 @@ config :plausible, PlausibleWeb.Endpoint,
http: [port: port, ip: listen_ip, transport_options: [max_connections: :infinity]], http: [port: port, ip: listen_ip, transport_options: [max_connections: :infinity]],
secret_key_base: secret_key_base secret_key_base: secret_key_base
maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: []
if is_nil(db_socket_dir) do if is_nil(db_socket_dir) do
config :plausible, Plausible.Repo, url: db_url config :plausible, Plausible.Repo,
url: db_url,
socket_options: maybe_ipv6
else else
config :plausible, Plausible.Repo, config :plausible, Plausible.Repo,
socket_dir: db_socket_dir, socket_dir: db_socket_dir,