From 0d86039210f268edfe8f778af40fbe2644ac8496 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 14 Aug 2023 01:26:59 +0200 Subject: [PATCH] feat: Add support for connecting to Postgres via the socket --- config/runtime.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index 8994f86..b2bf4a8 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -9,4 +9,5 @@ config :bdfr_browser, BdfrBrowser.Repo, database: System.get_env("BDFR_BROWSER_REPO_DATABASE", "postgres"), username: System.get_env("BDFR_BROWSER_REPO_USER", "bdfr-browser"), password: System.get_env("BDFR_BROWSER_REPO_PASSWORD", ""), - hostname: System.get_env("BDFR_BROWSER_REPO_HOST", "localhost") + socket_dir: System.get_env("BDFR_BROWSER_REPO_SOCKET_DIR", nil), + hostname: System.get_env("BDFR_BROWSER_REPO_HOST", nil)