From 3b48e24dfca75723e6b14dc04a8f59ba3c025616 Mon Sep 17 00:00:00 2001 From: naterfute Date: Sat, 5 Apr 2025 20:08:17 -0700 Subject: [PATCH] fix: set database password for focalboard and mattermost to be auto generated --- blueprints/focalboard/template.toml | 2 +- blueprints/mattermost/template.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprints/focalboard/template.toml b/blueprints/focalboard/template.toml index 8cf8256..80c9c5b 100644 --- a/blueprints/focalboard/template.toml +++ b/blueprints/focalboard/template.toml @@ -7,7 +7,7 @@ env = [ "VIRTUAL_PORT=8000 # Do Not Alter", "DB_TYPE=postgres", "POSTGRES_USER=focalboard", - "POSTGRES_PASSWORD=password", + "POSTGRES_PASSWORD=${password:32}", "POSTGRES_DB=focalboard" ] mounts = [] diff --git a/blueprints/mattermost/template.toml b/blueprints/mattermost/template.toml index 0fea8ec..424d8f2 100644 --- a/blueprints/mattermost/template.toml +++ b/blueprints/mattermost/template.toml @@ -5,7 +5,7 @@ main_domain = "${domain}" env = [ "Domain=${main_domain}", "POSTGRES_USER=mmuser", -"POSTGRES_PASSWORD=mmuser_password", +"POSTGRES_PASSWORD=${password:32}", "POSTGRES_DB=mattermost", "MM_SQLSETTINGS_DRIVERNAME=postgres", "MM_SQLSETTINGS_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10",