From: Mathieu Bruyen Date: Thu, 26 Nov 2015 08:20:23 +0000 (+0100) Subject: SMTP configuration through environment X-Git-Tag: 2.0.0-alpha.1~13^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=59507c5b24a0f4d68e5798dd9fa995d1e6dac416;hp=0a0c600887dde4cc755de0862a3301830c415882;p=github%2Fwallabag%2Fwallabag.git 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. --- 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": {