From 969e173e59471789f1376c952693654aa7e8176e Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 27 Mar 2021 22:09:53 +0100 Subject: [PATCH] Fix usage of "SMTP_DOMAIN" --- .config/zz-docker.config.php | 6 ++++++ 2020.09/apache/config/zz-docker.config.php | 6 ++++++ 2020.09/fpm-alpine/config/zz-docker.config.php | 6 ++++++ 2020.09/fpm/config/zz-docker.config.php | 6 ++++++ 2021.01/apache/config/zz-docker.config.php | 6 ++++++ 2021.01/fpm-alpine/config/zz-docker.config.php | 6 ++++++ 2021.01/fpm/config/zz-docker.config.php | 6 ++++++ 2021.03-dev/apache/config/zz-docker.config.php | 6 ++++++ 2021.03-dev/fpm-alpine/config/zz-docker.config.php | 6 ++++++ 2021.03-dev/fpm/config/zz-docker.config.php | 6 ++++++ 2021.03-rc/apache/config/zz-docker.config.php | 6 ++++++ 2021.03-rc/fpm-alpine/config/zz-docker.config.php | 6 ++++++ 2021.03-rc/fpm/config/zz-docker.config.php | 6 ++++++ 13 files changed, 78 insertions(+) diff --git a/.config/zz-docker.config.php b/.config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/.config/zz-docker.config.php +++ b/.config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2020.09/apache/config/zz-docker.config.php b/2020.09/apache/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2020.09/apache/config/zz-docker.config.php +++ b/2020.09/apache/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2020.09/fpm-alpine/config/zz-docker.config.php b/2020.09/fpm-alpine/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2020.09/fpm-alpine/config/zz-docker.config.php +++ b/2020.09/fpm-alpine/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2020.09/fpm/config/zz-docker.config.php b/2020.09/fpm/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2020.09/fpm/config/zz-docker.config.php +++ b/2020.09/fpm/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.01/apache/config/zz-docker.config.php b/2021.01/apache/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.01/apache/config/zz-docker.config.php +++ b/2021.01/apache/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.01/fpm-alpine/config/zz-docker.config.php b/2021.01/fpm-alpine/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.01/fpm-alpine/config/zz-docker.config.php +++ b/2021.01/fpm-alpine/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.01/fpm/config/zz-docker.config.php b/2021.01/fpm/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.01/fpm/config/zz-docker.config.php +++ b/2021.01/fpm/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-dev/apache/config/zz-docker.config.php b/2021.03-dev/apache/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-dev/apache/config/zz-docker.config.php +++ b/2021.03-dev/apache/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-dev/fpm-alpine/config/zz-docker.config.php b/2021.03-dev/fpm-alpine/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-dev/fpm-alpine/config/zz-docker.config.php +++ b/2021.03-dev/fpm-alpine/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-dev/fpm/config/zz-docker.config.php b/2021.03-dev/fpm/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-dev/fpm/config/zz-docker.config.php +++ b/2021.03-dev/fpm/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-rc/apache/config/zz-docker.config.php b/2021.03-rc/apache/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-rc/apache/config/zz-docker.config.php +++ b/2021.03-rc/apache/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-rc/fpm-alpine/config/zz-docker.config.php b/2021.03-rc/fpm-alpine/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-rc/fpm-alpine/config/zz-docker.config.php +++ b/2021.03-rc/fpm-alpine/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config; diff --git a/2021.03-rc/fpm/config/zz-docker.config.php b/2021.03-rc/fpm/config/zz-docker.config.php index 2d5835d..49ca5bd 100644 --- a/2021.03-rc/fpm/config/zz-docker.config.php +++ b/2021.03-rc/fpm/config/zz-docker.config.php @@ -59,4 +59,10 @@ if (!empty(getenv('FRIENDICA_DEBUGGING'))) { } } +if (!empty(getenv('SMTP_DOMAIN'))) { + $smtp_from = !empty(getenv('SMTP_FROM')) ? getenv('SMTP_FROM') : 'no-reply'; + + $config['config']['sender_email'] = $smtp_from . "@" . getenv('SMTP_DOMAIN'); +} + return $config;