diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 5ddd23e4..037a5dc5 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -338,6 +338,25 @@ class EEStackController(CementBaseController): out=ee_nginx) ee_nginx.close() + # Pagespeed configuration + Log.debug(self, 'Writting the Pagespeed Global ' + 'configuration to file /etc/nginx/conf.d/' + 'pagespeed.conf') + ee_nginx = open('/etc/nginx/conf.d/pagespeed.conf', + encoding='utf-8', mode='w') + self.app.render((data), 'pagespeed-global.mustache', + out=ee_nginx) + ee_nginx.close() + + Log.debug(self, 'Writting the Pagespeed common ' + 'configuration to file /etc/nginx/common/' + 'pagespeed.conf') + ee_nginx = open('/etc/nginx/common/pagespeed.conf', + encoding='utf-8', mode='w') + self.app.render((data), 'pagespeed-common.mustache', + out=ee_nginx) + ee_nginx.close() + # 22222 port settings Log.debug(self, 'Writting the nginx configuration to ' 'file /etc/nginx/sites-available/' diff --git a/ee/core/variables.py b/ee/core/variables.py index 99688e99..8b203710 100644 --- a/ee/core/variables.py +++ b/ee/core/variables.py @@ -73,7 +73,7 @@ class EEVariables(): elif ee_platform_distro == 'debian': ee_nginx_repo = ("deb http://packages.dotdeb.org {codename} all" .format(codename=ee_platform_codename)) - ee_nginx = ["nginx-full", "nginx-common"] + ee_nginx = ["nginx-extras", "nginx-common"] # PHP repo and packages if ee_platform_distro == 'Ubuntu':