PR #36 follow-up: rename var to nginx_extra_http_options.

This commit is contained in:
Jeff Geerling 2015-12-28 10:01:42 -06:00
parent 9848800982
commit 357ab200f7
3 changed files with 7 additions and 7 deletions

View File

@ -78,11 +78,11 @@ This value determines the largest file upload possible, as uploads are passed th
Set as the `proxy_cache_path` directive in the `nginx.conf` file. By default, this will not be configured (if left as an empty string), but if you wish to use Nginx as a reverse proxy, you can set this to a valid value (e.g. `"/var/cache/nginx keys_zone=cache:32m"`) to use Nginx's cache (further proxy configuration can be done in individual server configurations).
nginx_extra_options: ""
nginx_extra_http_options: ""
Extra lines to be inserted in the top-level `http` block in `nginx.conf`. The value should be defined literally (as you would insert it directly in the `nginx.conf`, adhering to the Nginx configuration syntax - such as `;` for line termination, etc.), for example:
nginx_extra_options: |
nginx_extra_http_options: |
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;

View File

@ -19,9 +19,9 @@ nginx_client_max_body_size: "64m"
nginx_proxy_cache_path: ""
nginx_extra_options: ""
# Example extra options, printed inside the main server http config:
# nginx_extra_options: |
nginx_extra_http_options: ""
# Example extra http options, printed inside the main server http config:
# nginx_extra_http_options: |
# proxy_buffering off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Scheme $scheme;

View File

@ -36,8 +36,8 @@ http {
proxy_cache_path {{ nginx_proxy_cache_path }};
{% endif %}
{% if nginx_extra_options %}
{{ nginx_extra_options }}
{% if nginx_extra_http_options %}
{{ nginx_extra_http_options }}
{% endif %}
{% for upstream in nginx_upstreams %}