Skip to content

Commit 53e5abf

Browse files
committed
Merge branch 'develop' for v1.7.0
2 parents ad2efa7 + 13f41ee commit 53e5abf

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

src/Site_WP_Docker.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function generate_docker_compose_yml( array $filters = [], $volumes ) {
103103
],
104104
];
105105

106-
$php['sysctls'] = sysctl_parameters();
106+
$php['sysctls'] = sysctl_parameters();
107107

108108
$php['networks'] = [
109109
'net' => [
@@ -156,10 +156,10 @@ public function generate_docker_compose_yml( array $filters = [], $volumes ) {
156156
$nginx['environment']['env'][] = [ 'name' => "SSL_POLICY=$ssl_policy" ];
157157
}
158158

159-
$nginx['volumes'] = [
159+
$nginx['volumes'] = [
160160
'vol' => \EE_DOCKER::get_mounting_volume_array( $volumes['nginx'] ),
161161
];
162-
$nginx['labels'] = [
162+
$nginx['labels'] = [
163163
'label' => [
164164
'name' => 'io.easyengine.site=${VIRTUAL_HOST}',
165165
],
@@ -207,6 +207,12 @@ public function generate_docker_compose_yml( array $filters = [], $volumes ) {
207207
$postfix['image'] = [ 'name' => 'easyengine/postfix:' . $img_versions['easyengine/postfix'] ];
208208
$postfix['hostname'] = [ 'name' => '${VIRTUAL_HOST}' ];
209209
$postfix['restart'] = $restart_default;
210+
$postfix['environment'] = [
211+
'env' => [
212+
[ 'name' => 'RELAY_HOST' ],
213+
[ 'name' => 'REPLY_EMAIL' ],
214+
],
215+
];
210216
$postfix['labels'] = [
211217
'label' => [
212218
'name' => 'io.easyengine.site=${VIRTUAL_HOST}',

src/WordPress.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public function __construct() {
9494
* : Use redis cache for WordPress.
9595
*
9696
* [--vip]
97-
* : Create WordPress VIP GO site using your vip repo which contains wp-content dir. Default it will use skeleton repo.
97+
* : Create WordPress VIP GO site using your vip repo which contains wp-content dir. Default it will use skeleton
98+
* repo.
9899
* ---
99100
* default: https://github.com/Automattic/vip-go-skeleton.git
100101
* ---
@@ -266,7 +267,7 @@ public function create( $args, $assoc_args ) {
266267
$this->logger->debug( 'assoc_args:', empty( $assoc_args ) ? array( 'NULL' ) : $assoc_args );
267268
$this->site_data['site_url'] = strtolower( \EE\Utils\remove_trailing_slash( $args[0] ) );
268269

269-
$mu = \EE\Utils\get_flag_value( $assoc_args, 'mu' );
270+
$mu = \EE\Utils\get_flag_value( $assoc_args, 'mu' );
270271
$this->site_data['app_sub_type'] = $mu ?? 'wp';
271272

272273
EE::log( 'Starting site creation.' );
@@ -361,7 +362,7 @@ public function create( $args, $assoc_args ) {
361362
if ( ! empty( $alias_domains ) ) {
362363
$comma_seprated_domains = explode( ',', $alias_domains );
363364
foreach ( $comma_seprated_domains as $domain ) {
364-
$trimmed_domain = trim( $domain );
365+
$trimmed_domain = trim( $domain );
365366
$this->site_data['alias_domains'] .= $trimmed_domain . ',';
366367
}
367368
}
@@ -375,7 +376,7 @@ public function create( $args, $assoc_args ) {
375376
$this->site_data['php_version'] = 5.6;
376377
} elseif ( 7 === $floor ) {
377378
$this->site_data['php_version'] = 7.4;
378-
$old_version .= ' yet';
379+
$old_version .= ' yet';
379380
} elseif ( 8 === $floor ) {
380381
$this->site_data['php_version'] = 8.0;
381382
$old_version .= ' yet';
@@ -550,6 +551,7 @@ public function info( $args, $assoc_args ) {
550551
$site = (array) Site::find( $this->site_data['site_url'] );
551552
$site = reset( $site );
552553
EE::log( json_encode( $site ) );
554+
553555
return;
554556
}
555557

templates/config/.env.mustache

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ VIRTUAL_HOST_EMAIL=example@{{virtual_host}}
1313
USER_ID={{user_id}}
1414
GROUP_ID={{group_id}}
1515
NEWRELIC_LICENSE_KEY=
16+
RELAY_HOST=
17+
REPLY_EMAIL=

templates/config/php-fpm/php.ini-56.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ upload_max_filesize = 100M
44
post_max_size = 100M
55

66
[mail function]
7-
sendmail_path = /usr/sbin/sendmail -t -i -f ee4@easyengine.io
7+
sendmail_path = /usr/sbin/sendmail -t -i -f no-reply@example.com

0 commit comments

Comments
 (0)