Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Droid Module: droid/nginx
# Droid Module: nginx

Setup NGINX as a load balancing, SSL terminating reverse proxy. For more
information on Droid, please see [droidphp.com](http://droidphp.com).
Expand Down
12 changes: 5 additions & 7 deletions droid.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
project:
name: "droid/nginx"
description: "Setup NGINX"
description: "Setup NGINX"

variables:
use_legacy_templating: true
nginx:
worker_processes: "4"
error_log: "/var/log/nginx/error.log warn"
Expand Down Expand Up @@ -95,7 +93,7 @@ tasks:
src: "!{{ item.auth_cacert }}"
dest: "/etc/ssl/certs/{{ item.name }}.cacert.pem"
with_items: nginx_vhosts
with_items_filter: "item['auth_cacert']"
with_items_filter: "'auth_cacert' in item"
-
name: "Copy HTTPS private key"
command: "fs:copy"
Expand All @@ -104,7 +102,7 @@ tasks:
src: "!{{ item.https_private_key }}"
dest: "/etc/ssl/private/{{ item.name }}.key"
with_items: nginx_vhosts
with_items_filter: "item['https_private_key']"
with_items_filter: "'https_private_key' in item"
-
name: "Copy HTTPS certificate"
command: "fs:copy"
Expand All @@ -113,7 +111,7 @@ tasks:
src: "!{{ item.https_certificate }}"
dest: "/etc/ssl/certs/{{ item.name }}.crt.pem"
with_items: nginx_vhosts
with_items_filter: "item['https_certificate']"
with_items_filter: "'https_certificate' in item"
-
name: "Create vhosts"
command: "fs:copy"
Expand Down