From 9c9d955474d47181211cfca91b670be7fe32a00f Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 21 Aug 2023 13:48:23 +0100 Subject: [PATCH] OAuth for pgAdmin. --- services/postgres.hcl | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/services/postgres.hcl b/services/postgres.hcl index 5710608..092efda 100644 --- a/services/postgres.hcl +++ b/services/postgres.hcl @@ -74,8 +74,26 @@ job "postgres" { PGADMIN_LISTEN_PORT = "${NOMAD_PORT_admin}" PGADMIN_DEFAULT_EMAIL = "${var.default_email}" PGADMIN_DEFAULT_PASSWORD = "${var.default_password}" - PGADMIN_DISABLE_POSTFIX = "true" + PGADMIN_DISABLE_POSTFIX = "True" PGADMIN_CONFIG_MAIL_SERVER = "'192.168.1.1'" + PGADMIN_CONFIG_AUTHENTICATION_SOURCES = "['oauth2', 'internal']" + PGADMIN_CONFIG_OAUTH2_AUTO_CREATE_USER = "True" + PGADMIN_CONFIG_OAUTH2_CONFIG = <