[Backport release-25.05] mattermost: charset fixes (#439044)

This commit is contained in:
Morgan Jones
2025-09-01 22:52:42 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -668,7 +668,7 @@ in
}
else if cfg.database.driver == "mysql" then
{
charset = "utf8mb4,utf8";
charset = "utf8mb4";
writeTimeout = "60s";
readTimeout = "60s";
}
@@ -682,7 +682,7 @@ in
}
else if config.mattermost.database.driver == "mysql" then
{
charset = "utf8mb4,utf8";
charset = "utf8mb4";
writeTimeout = "60s";
readTimeout = "60s";
}

View File

@@ -336,7 +336,7 @@ mattermost.overrideAttrs (
# Start Postgres.
export PGDATA="$NIX_BUILD_TOP/.postgres"
initdb -U postgres
initdb -E UTF8 -U postgres
mkdir -p "$PGDATA/run"
cat <<EOF >> "$PGDATA/postgresql.conf"
unix_socket_directories = '$PGDATA/run'