From 25ef8aee95800b4af1f2eb46deb0eb342e96667e Mon Sep 17 00:00:00 2001 From: staticsafe Date: Fri, 13 Jan 2017 03:00:01 +0000 Subject: [PATCH] Add webserver role using jdauphant.nginx --- ubuntu/site.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ubuntu/site.yml b/ubuntu/site.yml index 40e884f..86c2b28 100644 --- a/ubuntu/site.yml +++ b/ubuntu/site.yml @@ -13,3 +13,21 @@ roles: - php + +- hosts: webservers + + roles: + - role: jdauphant.nginx + nginx_user: "www-data" + nginx_http_params: + - sendfile "on" + nginx_configs: + gzip: + - gzip on + - gzip_disable msie6 + - gzip_types "text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript" + upstream: + - upstream php { server "unix:/run/php/php7.0-fpm.sock" } + ssl: + - ssl_protocols TLSv1 TLSv1.1 TLSv1.2 + - ssl_prefer_server_ciphers on