Commit Graph

191 Commits

Author SHA1 Message Date
Alexander Rublev
469d663bc2 Add proxy_redirect parameter for location blocks (#102)
* Add proxy_redirect parameter for http and location blocks (#1)

* Use ternary() filter to handle proxy_redirect parameter
2019-02-18 14:23:57 +00:00
Alessandro Fael Garcia
589d668def Add parameter to cleanup existing NGINX configs (#103) 2019-02-15 14:51:09 +00:00
Alessandro Fael Garcia
171b7d0cce Add root parameter to server context (#104)
* Add root parameter to server context

* Update NGINX Unit test playbook
2019-02-15 13:59:38 +00:00
Alexander Rublev
f29d9c33f0 Allow setting basic parameters for proxy cache (#94)
* Add parameters for proxy cache
2019-02-12 15:12:40 +00:00
Marcin Mielnicki
80f6157692 Support for configuration of basic authentication (#99)
* Support for basic authentication
2019-02-12 12:32:11 +00:00
carlba
8db44bf979 Websocket support enabled for reverse proxy locations. (#97)
* Websocket support for reverse proxy locations.
2019-02-08 13:32:32 +00:00
Timothy Allen
3a66e10a17 Basic stream template (#92)
* Add Stream template defaults
* Add stream default config template
* Added stream template variables
* Changed Ansible task to use new stream template
2019-02-06 12:39:48 +00:00
Izak Eygelaar
f79e6d0210 Allow making use of Ansible-vault to encrypt and decrypt sensitive certs and keys (#95)
* Allow making use of Ansible-vault to encrypt sensitive certs and keys
2019-02-01 18:59:56 +00:00
Alessandro Fael Garcia
8ead2b7c00
Install RTMP only when using NGINX Plus (#91)
* Install RTMP only when using NGINX Plus

* Make GeoIP and NJS module tasks idempotent
2019-01-21 17:20:16 +01:00
Alessandro Fael Garcia
6693791de2
Fix module install task (#89)
* Fix module install task

* Fix perl module
2019-01-21 12:34:44 +01:00
Alessandro Fael Garcia
1d3b03ea2b
Improve tests (#90)
* Update .travis.yml

* Create Travis build matrix

* Add nginx-modules.yml test playbook to Travis build matrix

* Improve template test playbook

* Change HTML template variables from Ansible to NGINX variables
2019-01-21 12:19:30 +01:00
Alessandro Fael Garcia
fdfff7efca Revert upload destinations 2019-01-14 17:37:49 +01:00
Alessandro Fael Garcia
bcc3f1e166 Improve templating
* 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
2019-01-14 17:26:37 +01:00
Alessandro Fael Garcia
c1c3a372d7
Allow setting a custom apt and rpm signing key host (#84)
* Allow setting a custom apt and rpm signing key host

* Change default fallback key to https

* Use facts to determine which signing key to use

* Add single quotes
2019-01-09 00:26:14 +01:00
Daniel Mills
bd09ecd85e Add support for enabling an http to https redirects (#82)
* Add support for enabling an http to https redirects

* Remove extra curly brace

* Update default.conf.j2

Remove another extra curly brace

* Add redirect variable to defaults and readme
2019-01-03 23:14:25 +01:00
Daniel Mills
fe3caad174 Add ansible_managed to templates (#81)
* Add ansible_managed to templates

* Put ansible managed in the right place

* Remove extraneous empty line
2019-01-03 23:13:56 +01:00
Daniel Mills
dad58ec5cd Ignore undefined values for autoindex and health check (#80)
* Ignore undefined autoindex

* ignore undefined health_check_plus
2018-12-22 23:26:03 +01:00
Alessandro Fael Garcia
c2cdc68ec3
Improve Ansible Galaxy metadata score (#79) 2018-12-21 15:17:00 +01:00
Alessandro Fael Garcia
243cee42d5 Rename html_app_name to web_server_name 2018-12-03 21:02:51 +01:00
Dmitriy Skopintsev
92c154ff4b SSL certificate and key path to default.conf (#78)
* Fix example playbook section

* Add SSL certificate and key upload destination path to configuration file
2018-12-03 07:18:31 -08:00
Alessandro Fael Garcia
7670d11b1d Fix HTML templating 2018-11-26 14:15:57 -08:00
Dmitriy Skopintsev
df84780f02 Enable autoindex in http, server and location namespaces (#75)
* Added condition to use new autoindex variable

* Added condition to use new autoindex variable for separate virtual hosts

* Added global autoindex and autoindex for separate virutal hosts

* Added autoindex enabling for virtual host namespace

* Added autoindex enabling for virtual host namespace variable

* Added autoindex for testing puprposes

* Changed autoindex to false

* Added autoindex for virtual host

* Added autoindex ot readme file
2018-11-26 12:06:46 -07:00
Alessandro Fael Garcia
e9a3e6a8e2 Refactor apt module loop
Apt/yum with_items module loops have been deprecated in Ansible 2.7
2018-11-19 13:42:41 -08:00
Alessandro Fael Garcia
5cd48e5b5c Fix HTML templating 2018-11-19 12:06:19 -08:00
Alessandro Fael Garcia
39dd5a29cc
Merge pull request #72 from 0x28d/master
Allow to generate custom locations in load_balancer mode
2018-11-19 10:26:44 -08:00
Alexander Rublev
164a6bda98 Update test nginx-template.yml 2018-11-19 07:10:19 +03:00
Alexander Rublev
19d19483d7 Typo correction 2018-11-16 08:39:01 +03:00
Alexander Rublev
75cc3b630e Update README.md by adding new introduced vars 2018-11-16 07:46:14 +03:00
Alexander Rublev
0e68067c5f Merge remote-tracking branch 'upstream/master' 2018-11-16 06:54:49 +03:00
Alessandro Fael Garcia
728555c581
Merge pull request #71 from nginxinc/(fix)/stretch-signing-key
Add hkp signing key fallback option for Stretch
2018-11-14 14:37:13 -08:00
Alessandro Fael Garcia
af4450a8d5 Use url parameter instead of id and keyserver 2018-11-14 13:29:37 -08:00
Alessandro Fael Garcia
d0e6512b12 Always fallback from a hkps to a hkp keyserver 2018-11-14 12:43:41 -08:00
Alexander Rublev
e13606c8df Typo correction 2018-11-15 01:48:51 +07:00
Alexander Rublev
aa4fcd34bd Update in README.md 2018-11-15 01:18:38 +07:00
Alexander Rublev
87db5ea0b8 Update default/main.yml by adding vars for generating custom locations in web_server mode 2018-11-14 23:50:12 +07:00
Alexander Rublev
709e52eb0b Allow to generate custom locations in web_server mode 2018-11-14 23:33:54 +07:00
Alexander Rublev
33f72ee8f2 Allow to generate custom locations in load_balancer mode 2018-11-13 09:57:44 +03:00
Alessandro Fael Garcia
71f4eb3605 Add hkp signing key fallback option for Stretch 2018-11-12 11:47:37 -08:00
Alessandro Fael Garcia
63126c3ff7
Merge pull request #70 from 0x28d/master
Allow setting a passive health checks
2018-11-12 10:30:30 -08:00
Alexander Rublev
6a6f23032f Update defaults/main.yml by adding health_check var 2018-11-10 16:37:49 +07:00
Alexander Rublev
e2063d9eba Allow setting a passive health checks 2018-11-09 13:28:16 +03:00
Alessandro Fael Garcia
373ab3a796
Merge pull request #69 from gusttt/gpgkeyrepo
Only add repository key when nginx_repository is used.
2018-10-18 13:57:42 -07:00
Alessandro Fael Garcia
c07792daee Add extra checks for when the nginx repo is needed. 2018-10-18 21:39:36 +02:00
Alessandro Fael Garcia
42d1937b3a Add extra checks for when the nginx repo is needed. 2018-10-18 21:39:10 +02:00
gusttt
fe32888347 Only add repository key when nginx_repository is used.
Fix #68
2018-10-18 08:41:53 +02:00
Alessandro Fael Garcia
53a5c95781
Merge pull request #67 from nginxinc/(feature)/refactor-templating
Refactor templating
2018-10-16 12:59:18 -07:00
Alessandro Fael Garcia
13a847234e Refactor templating
* Add more advanced HTTP templating options
* Let users choose the upload destination when uploading files
* Implement the ability to print your NGINX configuration to your terminal after running a playbook
2018-10-16 11:52:04 -07:00
Alessandro Fael Garcia
44a74aad75
Merge pull request #61 from nginxinc/rename-variables
Rename variables
2018-09-14 23:42:53 -07:00
Alessandro Fael Garcia
27c4069646 Fix module variable name 2018-09-14 17:53:08 -07:00
Alessandro Fael Garcia
9fea522566 Fix more repository variables 2018-09-14 17:27:12 -07:00