You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rename load_balancer block to reverse_proxy
* Clarify that the redirect variable refers to a http to https redirect
* Allow setting the listen port when using SSL
* Improve SSL defaults
* Allow setting http or https server locations in proxy_pass
# Defaults will not produce a valid configuration. Instead they are meant to showcase
323
323
# the options available for templating. Each key represents a new configuration file.
324
-
# Comment out load_balancer or web_server depending on whether you wish to create a web server
324
+
# Comment out reverse_proxy or web_server depending on whether you wish to create a web server
325
325
# or load balancer configuration file.
326
326
nginx_http_template_enable: false
327
327
nginx_http_template:
@@ -332,7 +332,7 @@ nginx_http_template:
332
332
port: 8081
333
333
server_name: localhost
334
334
error_page: /usr/share/nginx/html
335
-
redirect: false
335
+
https_redirect: false
336
336
autoindex: false
337
337
ssl:
338
338
cert: ssl/default.crt
@@ -345,11 +345,11 @@ nginx_http_template:
345
345
html_file_name: index.html
346
346
autoindex: false
347
347
http_demo_conf: false
348
-
load_balancer:
348
+
reverse_proxy:
349
349
locations:
350
350
backend:
351
351
location: /
352
-
proxy_pass: backend
352
+
proxy_pass: http://backend
353
353
health_check_plus: false
354
354
upstreams:
355
355
upstream1:
@@ -410,9 +410,6 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
410
410
nginx_http_template_enable: true
411
411
nginx_http_template:
412
412
default:
413
-
template_file: http/default.conf.j2
414
-
conf_file_name: default.conf
415
-
conf_file_location: /etc/nginx/conf.d/
416
413
port: 80
417
414
server_name: localhost
418
415
error_page: /usr/share/nginx/html
@@ -423,7 +420,6 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
423
420
location: /
424
421
html_file_location: /usr/share/nginx/html
425
422
html_file_name: index.html
426
-
autoindex: false
427
423
```
428
424
429
425
This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a localhost and installing the open source version of NGINX as a reverse proxy.
@@ -437,39 +433,40 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
0 commit comments