From 9f84c8c10ed3cb1bd8faab1d5fbe0afa3d2004a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 14 Jan 2025 13:47:21 +0100 Subject: [PATCH] Update DATABASE_URL to use sslmode=prefer Changed the `sslmode` parameter in the DATABASE_URL from `disable` to `prefer` for improved connection security. This ensures the database connection can utilize SSL when available. --- templates/env_file.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/env_file.env b/templates/env_file.env index 57c40a2..08b597b 100644 --- a/templates/env_file.env +++ b/templates/env_file.env @@ -41,5 +41,5 @@ JWT_PASSPHRASE={{ item.chill_config.jwt_passphrase }} JWT_SECRET_KEY={{ item.chill_config.jwt_secret_key }} JWT_PUBLIC_KEY={{ item.chill_config.jwt_public_key }} RABBITMQ_URL=amqp://{{ item.chill_config.rabbitmq_user }}:{{ item.chill_config.rabbitmq_password }}@rabbitmq/%2f -DATABASE_URL=postgres://{{ item.chill_config.database_user }}:{{ item.chill_config.database_password }}@{% if item.add_postgres %}database:5432{% else %}{{ item.chill_config.database_host }}{% endif %}/{{ item.chill_config.database_name }}?sslmode=disable&charset=utf8&serverVersion={{ item.chill_config.database_version }} +DATABASE_URL=postgres://{{ item.chill_config.database_user }}:{{ item.chill_config.database_password }}@{% if item.add_postgres %}database:5432{% else %}{{ item.chill_config.database_host }}{% endif %}/{{ item.chill_config.database_name }}?sslmode=prefer&charset=utf8&serverVersion={{ item.chill_config.database_version }} EDITOR_SERVER={{ item.chill_config.editor_server }}