Skip to content

Commit 4e2ed2b

Browse files
committed
[TASK] Mail: Add phpmailer
1 parent ef9a2f4 commit 4e2ed2b

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ RUN git checkout 0848cef605bb6773852809a9cf3af5a5cc26bb10
104104
RUN /usr/local/bin/composer install --optimize-autoloader
105105

106106
# install addons
107-
RUN git clone https://github.com/friendica/friendica-addons.git addon
107+
RUN git clone https://github.com/m-arcus/friendica-addons.git addon
108108

109109
# copy config file
110110
COPY htconfig.php /app/code/friendica/

htconfig.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
// Set the database connection charset to full Unicode (utf8mb4).
3737
// Changing this value will likely corrupt the special characters.
3838
// You have been warned.
39-
$a->config['system']['db_charset'] = "utf8mb4";
39+
$a->config['system']['db_charset'] = 'utf8mb4';
4040

4141
// Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
4242
// It can be changed later and only applies to timestamps for anonymous viewers.
4343

44-
$default_timezone = 'America/Los_Angeles';
44+
$default_timezone = 'Europe/Berlin';
4545

4646
// Default system language
4747

48-
$a->config['system']['language'] = 'en';
48+
$a->config['system']['language'] = 'de';
4949

5050
// What is your site name?
5151
@@ -61,7 +61,7 @@
6161
// In order to perform system administration via the admin panel, admin_email
6262
// must precisely match the email address of the person logged in.
6363

64-
$a->config['register_policy'] = REGISTER_OPEN;
64+
$a->config['register_policy'] = REGISTER_APPROVE;
6565
$a->config['register_text'] = '';
6666
$a->config['admin_email'] = 'admin@example.com';
6767

@@ -84,7 +84,7 @@
8484

8585
// allowed themes (change this from admin panel after installation)
8686

87-
$a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly,frio';
87+
$a->config['system']['allowed_themes'] = 'frio';
8888

8989
// default system theme
9090

@@ -106,3 +106,13 @@
106106

107107
// Authentication cookie lifetime, in days
108108
$a->config['system']['auth_cookie_lifetime'] = 7;
109+
110+
$a->config['system']['smtp'] = true;
111+
$a->config['system']['smtp_server'] = getenv('MAIL_SMTP_SERVER');
112+
$a->config['system']['smtp_port'] = getenv('MAIL_SMTP_PORT');
113+
$a->condig['system']['smtp_port_s'] = getenv('MAIL_SMTPS_PORT');
114+
$a->config['system']['smtp_username'] = getenv('MAIL_SMTP_USERNAME');
115+
$a->config['system']['smtp_password'] = getenv('MAIL_SMTP_PASSWORD');
116+
$a->config['system']['smtp_from'] = getenv('MAIL_FROM');
117+
$a->config['system']['smtp_domain'] = getenv('MAIL_DOMAIN');
118+
$a->config['system']['smtp_secure'] = 'tls';

0 commit comments

Comments
 (0)