[APP] Ghost - Add mail configuration (#2724)

Co-authored-by: Frédéric Cilia <AZR_FCILIA-ext@admin.lvmhpcis.com>
This commit is contained in:
Frédéric Cilia 2024-03-18 21:45:18 +01:00 committed by GitHub
parent 0b867e56df
commit 46b4b21404
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 1 deletions

View File

@ -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": [

View File

@ -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: