@@ -86,10 +86,10 @@ RedHat:
86
86
- 6.5+
87
87
- 7.4+
88
88
- 8
89
- SUSE/SLES :
90
- versions :
91
- - 12
92
- - 15
89
+ SUSE/SLES :
90
+ versions :
91
+ - 12
92
+ - 15
93
93
Ubuntu :
94
94
versions :
95
95
- trusty
@@ -115,7 +115,7 @@ Ubuntu:
115
115
versions :
116
116
- trusty
117
117
- xenial
118
- - bionic
118
+ - bionic
119
119
RedHat :
120
120
versions :
121
121
- 6
@@ -211,23 +211,33 @@ nginx_install_from: nginx_repository
211
211
212
212
# Choose where to fetch the NGINX signing key from.
213
213
# Default is the official NGINX signing key host.
214
- nginx_signing_key : http://nginx.org/keys/nginx_signing.key
214
+ # nginx_signing_key: http://nginx.org/keys/nginx_signing.key
215
215
216
216
# Specify source repository for NGINX Open Source.
217
- # Only works if 'nginx_install_from ' is set to 'nginx_repository'.
217
+ # Only works if 'install_from ' is set to 'nginx_repository'.
218
218
# Defaults are the official NGINX repositories.
219
219
nginx_repository :
220
+ alpine : >-
221
+ https://nginx.org/packages/{{ (nginx_branch == 'mainline')
222
+ | ternary('mainline/', '') }}alpine/v{{ ansible_distribution_version | regex_search('^[0-9]+\\.[0-9]+') }}/main
220
223
debian :
221
- - deb https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
222
- - deb-src https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
223
- redhat :
224
- - https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}{{ ansible_distribution_major_version|int }}/$basearch/
225
- suse :
226
- - https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}sles/12
224
+ - >-
225
+ deb https://nginx.org/packages/{{ (nginx_branch == 'mainline')
226
+ | ternary('mainline/', '') }}{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} nginx
227
+ - >-
228
+ deb-src https://nginx.org/packages/{{ (nginx_branch == 'mainline')
229
+ | ternary('mainline/', '') }}{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} nginx
230
+ redhat : >-
231
+ https://nginx.org/packages/{{ (nginx_branch == 'mainline')
232
+ | ternary('mainline/', '') }}{{ (ansible_distribution == "RedHat")
233
+ | ternary('rhel', 'centos') }}/{{ ansible_distribution_major_version }}/$basearch/
234
+ suse : >-
235
+ https://nginx.org/packages/{{ (nginx_branch == 'mainline')
236
+ | ternary('mainline/', '') }}sles/{{ ansible_distribution_major_version }}
227
237
228
238
# Specify which branch of NGINX Open Source you want to install.
229
239
# Options are 'mainline' or 'stable'.
230
- # Only works if 'nginx_install_from ' is set to 'nginx_repository'.
240
+ # Only works if 'install_from ' is set to 'nginx_repository'.
231
241
# Default is mainline.
232
242
nginx_branch : mainline
233
243
@@ -353,10 +363,12 @@ nginx_http_template:
353
363
autoindex : false
354
364
auth_basic : null
355
365
auth_basic_user_file : null
366
+ try_files : $uri $uri/index.html $uri.html =404
356
367
# auth_request: /auth
357
368
ssl :
358
369
cert : /etc/ssl/certs/default.crt
359
370
key : /etc/ssl/private/default.key
371
+ dhparam : /etc/ssl/private/dh_param.pem
360
372
protocols : TLSv1 TLSv1.1 TLSv1.2
361
373
ciphers : HIGH:!aNULL:!MD5
362
374
session_cache : none
@@ -370,7 +382,8 @@ nginx_http_template:
370
382
autoindex : false
371
383
auth_basic : null
372
384
auth_basic_user_file : null
373
- # auth_req: /auth
385
+ try_files : $uri $uri/index.html $uri.html =404
386
+ # auth_request: /auth
374
387
# returns:
375
388
# return302:
376
389
# code: 302
@@ -432,9 +445,6 @@ nginx_http_template:
432
445
cert : /etc/ssl/certs/proxy_default.crt
433
446
key : /etc/ssl/private/proxy_default.key
434
447
trusted_cert : /etc/ssl/certs/proxy_ca.crt
435
- dhparam : /etc/ssl/private/dh_param.pem
436
- server_name : false
437
- name : server_name
438
448
protocols : TLSv1 TLSv1.1 TLSv1.2
439
449
ciphers : HIGH:!aNULL:!MD5
440
450
verify : false
@@ -452,10 +462,10 @@ nginx_http_template:
452
462
proxy_ignore_headers :
453
463
- Vary
454
464
- Cache-Control
455
- proxy_redirect : false
456
465
websocket : false
457
466
auth_basic : null
458
467
auth_basic_user_file : null
468
+ try_files : $uri $uri/index.html $uri.html =404
459
469
# auth_req: /auth
460
470
# returns:
461
471
# return302:
@@ -494,7 +504,7 @@ nginx_status_port: 8080
494
504
# Requires NGINX Plus.
495
505
# Default is false.
496
506
nginx_rest_api_enable : false
497
- nginx_rest_api_src : api.conf.j2
507
+ nginx_rest_api_src : http/ api.conf.j2
498
508
nginx_rest_api_location : /etc/nginx/conf.d/api.conf
499
509
nginx_rest_api_port : 8080
500
510
nginx_rest_api_write : false
@@ -522,8 +532,6 @@ nginx_stream_template:
522
532
cert : /etc/ssl/certs/proxy_default.crt
523
533
key : /etc/ssl/private/proxy_default.key
524
534
trusted_cert : /etc/ssl/certs/proxy_ca.crt
525
- server_name : false
526
- name : server_name
527
535
protocols : TLSv1 TLSv1.1 TLSv1.2
528
536
ciphers : HIGH:!aNULL:!MD5
529
537
verify : false
@@ -713,6 +721,8 @@ License
713
721
Author Information
714
722
------------------
715
723
716
- Alessandro Fael Garcia
724
+ [Alessandro Fael Garcia](https://github.com/alessfg)
725
+
726
+ [Grzegorz Dzien](https://github.com/gdzien)
717
727
718
- [NGINX Inc](https://www.nginx.com/)
728
+ © [NGINX, Inc. ](https://www.nginx.com/) 2018 - 2019
0 commit comments