From b7c27f41f77d917b57467f0eb40a308a27d33cc9 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 1 Jul 2016 16:25:30 -0500 Subject: [PATCH] PR #62: Document new variable. --- README.md | 4 ++++ defaults/main.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 854fa32..e19da5b 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,10 @@ An example of a fully-populated nginx_vhosts entry, using a `|` to declare a blo Whether to remove the 'default' virtualhost configuration supplied by Nginx. Useful if you want the base `/` URL to be directed at one of your own virtual hosts configured in a separate .conf file. + nginx_vhosts_filename: "vhosts.conf" + +The filename to use to store vhosts configuration. If you run the role multiple times (e.g. include the role with `with_items`), you can change the name for each run, effectively creating a separate vhosts file per vhost configuration. + nginx_upstreams: [] If you are configuring Nginx as a load balancer, you can define one or more upstream sets using this variable. In addition to defining at least one upstream, you would need to configure one of your server blocks to proxy requests through the defined upstream (e.g. `proxy_pass http://myapp1;`). See the commented example in `defaults/main.yml` for more information. diff --git a/defaults/main.yml b/defaults/main.yml index 51bda4f..f0bda61 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -44,8 +44,8 @@ nginx_extra_http_options: "" # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header Host $http_host; -nginx_vhosts_filename: "vhosts.conf" nginx_remove_default_vhost: false +nginx_vhosts_filename: "vhosts.conf" nginx_vhosts: [] # Example vhost below, showing all available options: # - listen: "80 default_server" # default: "80 default_server"