From 46b4b21404f0cf2124a9dd51489aef04791d3ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Cilia?= Date: Mon, 18 Mar 2024 21:45:18 +0100 Subject: [PATCH] [APP] Ghost - Add mail configuration (#2724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Frédéric Cilia --- apps/ghost/config.json | 37 ++++++++++++++++++++++++++++++++++- apps/ghost/docker-compose.yml | 6 ++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/apps/ghost/config.json b/apps/ghost/config.json index cac07622..039a66ea 100644 --- a/apps/ghost/config.json +++ b/apps/ghost/config.json @@ -5,7 +5,7 @@ "available": true, "exposable": true, "id": "ghost", - "tipi_version": 81, + "tipi_version": 82, "version": "5.80.3", "categories": [ "social", @@ -21,6 +21,41 @@ "label": "Ghost Database password", "min": 20, "env_variable": "GHOST_DATABASE_PASSWORD" + }, + { + "type": "text", + "label": "Mail Service name", + "hint": "The name of your mail service (ie. Google)", + "required": false, + "env_variable": "GHOST_MAIL_SERVICE" + }, + { + "type": "text", + "label": "SMTP Host", + "hint": "Your SMTP Server", + "required": false, + "env_variable": "GHOST_MAIL_HOST" + }, + { + "type": "text", + "label": "SMTP Port", + "hint": "Your SMTP Port", + "required": false, + "env_variable": "GHOST_MAIL_PORT" + }, + { + "type": "text", + "label": "SMTP Username", + "hint": "Your SMTP Server User/Username", + "required": false, + "env_variable": "GHOST_MAIL_USER" + }, + { + "type": "text", + "label": "SMTP Password", + "hint": "Your SMTP Server Password", + "required": false, + "env_variable": "GHOST_MAIL_PASSWORD" } ], "supported_architectures": [ diff --git a/apps/ghost/docker-compose.yml b/apps/ghost/docker-compose.yml index eb90938e..b4cb419c 100644 --- a/apps/ghost/docker-compose.yml +++ b/apps/ghost/docker-compose.yml @@ -17,6 +17,12 @@ services: database__connection__password: ${GHOST_DATABASE_PASSWORD} database__connection__database: ghosttipi url: ${APP_PROTOCOL:-http}://${APP_DOMAIN} + mail__transport: SMTP + mail__options__service: ${GHOST_MAIL_SERVICE} + mail__options__host: ${GHOST_MAIL_HOST} + mail__options__port: ${GHOST_MAIL_PORT} + mail__options__auth__user: ${GHOST_MAIL_USER} + mail__options__auth__pass: ${GHOST_MAIL_PASSWORD} volumes: - ${APP_DATA_DIR}/content:/var/lib/ghost/content networks: