diff --git a/http/Provision/Config/Nginx/Ssl/vhost_ssl.tpl.php b/http/Provision/Config/Nginx/Ssl/vhost_ssl.tpl.php index 625bb15f59cb81cb3c8b1d5c7336b7e0fc19663a..92b73eb2e3617879b478764fc9ede14d47dc8e07 100644 --- a/http/Provision/Config/Nginx/Ssl/vhost_ssl.tpl.php +++ b/http/Provision/Config/Nginx/Ssl/vhost_ssl.tpl.php @@ -1,10 +1,36 @@ ssl_enabled && $this->ssl_key) : ?> +satellite_mode) { + $satellite_mode = $server->satellite_mode; +} + +$nginx_has_http2 = drush_get_option('nginx_has_http2'); +if (!$nginx_has_http2 && $server->nginx_has_http2) { + $nginx_has_http2 = $server->nginx_has_http2; +} + +if ($nginx_has_http2) { + $ssl_args = "ssl http2"; +} +else { + $ssl_args = "ssl"; +} + +if ($satellite_mode == 'boa') { + $ssl_listen_ip = "*"; +} +else { + $ssl_listen_ip = $ip_address; +} +?> + redirection): ?> aliases as $alias_url): ?> server { - listen ; + listen ; uri instead of @@ -61,7 +87,7 @@ server { } ?> fastcgi_param db_port ; - listen ; + listen ; server_name satellite_mode) { $satellite_mode = $server->satellite_mode; } + +$nginx_has_http2 = drush_get_option('nginx_has_http2'); +if (!$nginx_has_http2 && $server->nginx_has_http2) { + $nginx_has_http2 = $server->nginx_has_http2; +} + +if ($nginx_has_http2) { + $ssl_args = "ssl http2"; +} +else { + $ssl_args = "ssl"; +} + +if ($satellite_mode == 'boa') { + $ssl_listen_ip = "*"; +} +else { + $ssl_listen_ip = $ip_address; +} ?> server { - listen ; + listen ; server_name uri . ' ' . implode(' ', str_replace('/', '.', $this->aliases)); ?>; root /var/www/nginx-default;