From 5659f06da86cc06be165a50264832994d6878244 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Fri, 11 Aug 2023 09:49:25 -0400 Subject: [PATCH] Add Ghost/mailgun support for roygbiv.guide. --- project_defaults.sh | 10 ++++++---- www/stub/ghost_yml.sh | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/project_defaults.sh b/project_defaults.sh index 326e43c..1ee4e99 100755 --- a/project_defaults.sh +++ b/project_defaults.sh @@ -7,8 +7,10 @@ export DEPLOY_CLAMS=false export DEPLOY_NOSTR=false export DEPLOY_NEXTCLOUD=false export DEPLOY_GITEA=false - - +export GHOST_DEPLOY_SMTP=false +export MAILGUN_FROM_ADDRESS= +export MAILGUN_SMTP_USERNAME= +export MAILGUN_SMTP_PASSWORD= export SITE_LANGUAGE_CODES="en" export LANGUAGE_CODE="en" @@ -33,7 +35,7 @@ DEFAULT_DB_IMAGE="mariadb:10.11.2-jammy" # run the docker stack. -export GHOST_IMAGE="ghost:5.42.0" +export GHOST_IMAGE="ghost:5.53.3" # TODO switch to mysql. May require intricate export work for existing sites. # THIS MUST BE COMPLETED BEFORE v1 RELEASE @@ -41,7 +43,7 @@ export GHOST_IMAGE="ghost:5.42.0" export GHOST_DB_IMAGE="mysql:8.0.32" -export NGINX_IMAGE="nginx:1.23.3" +export NGINX_IMAGE="nginx:1.25.1" # version of backup is 24.0.3 export NEXTCLOUD_IMAGE="nextcloud:25.0.4" diff --git a/www/stub/ghost_yml.sh b/www/stub/ghost_yml.sh index 9403263..790d790 100755 --- a/www/stub/ghost_yml.sh +++ b/www/stub/ghost_yml.sh @@ -70,6 +70,21 @@ EOL - database__connection__database=ghost - database__pool__min=0 - privacy__useStructuredData=true +EOL + + # INSERT EMAIL OPTIONS HERE + if [ "$GHOST_DEPLOY_SMTP" = true ]; then + cat >>"$DOCKER_YAML_PATH" <>"$DOCKER_YAML_PATH" <