From 59507c5b24a0f4d68e5798dd9fa995d1e6dac416 Mon Sep 17 00:00:00 2001 From: Mathieu Bruyen Date: Thu, 26 Nov 2015 09:20:23 +0100 Subject: [PATCH 1/1] SMTP configuration through environment Configuring SMTP parameters required to be written in files which is not convenient when using docker containers as the credentials need to be in the filesystem. Created environment parameters override for those parameters. A new build script created in order to generate those parameters right before launching the application. --- composer.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b6a9c854..5892dc1a 100644 --- a/composer.json +++ b/composer.json @@ -85,6 +85,9 @@ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" + ], + "build-parameters": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters" ] }, "extra": { @@ -92,7 +95,13 @@ "symfony-web-dir": "web", "symfony-assets-install": "relative", "incenteev-parameters": { - "file": "app/config/parameters.yml" + "file": "app/config/parameters.yml", + "env-map": { + "mailer_host": "WALLABAG_MAILER_HOST", + "mailer_user": "WALLABAG_MAILER_USER", + "mailer_password": "WALLABAG_MAILER_PASSWORD", + "secret": "WALLABAG_SECRET" + } } }, "autoload": { -- 2.41.0