HauptJ.openresty
OpenResty
This guide helps you configure and install OpenResty NGINX.
Requirements
- Ansible version 2.3 or higher
- CentOS version 7.4 or higher
- Ubuntu version 16.04 or higher [SOURCE INSTALL ONLY]
Installation
- Make a copy of this repository (fork it).
- Use the command:
git submodule add <git host> roles/ansible-role-openresty
Ansible Galaxy: HauptJ.openresty
Variables
OpenResty Settings
Name | Default | Description |
---|---|---|
resty_install_from_source | true | Install from source [true] or from repository [false] |
resty_compile_threads | 2 | Number of threads for compilation |
resty_default_server | true | Set up default (welcome) web server |
resty_default_web_dir | /usr/local/openresty/nginx/html/default | Default web directory |
resty_sites_dir | /usr/local/openresty/nginx/sites | Directory for sites or virtual hosts |
resty_web_user | nginx | User and group for OpenResty web service |
resty_conf_dir | /usr/local/openresty/nginx/conf | Directory for configuration files |
resty_log_dir | /var/log/openresty | Directory for log files |
openresty_version | 1.11.2.5 | Version of OpenResty |
with_luajit | true | Include luajit support |
with_dav | true | Include dav support |
with_flv | true | Include flv support |
with_geoip | true | Include geoip support |
with_gzip_stati | true | Include gzip_static support |
with_image_filter | true | Include image_filter support |
with_realip | true | Include realip support |
with_stub_status | true | Include stub_status support |
with_ssl | true | Include SSL support |
with_sub | true | Include sub module support |
with_xslt | true | Include xslt support |
with_ipv6 | true | Include IPv6 support |
with_sha1 | "/usr/include/openssl" | Include SHA1 support [DEPRECATED] |
with_md5 | "/usr/include/openssl" | Include MD5 support [DEPRECATED] |
with_mail | true | Include mail support |
with_mail_ssl | true | Include mail_ssl support |
with_secure_link | true | Include secure_link support |
with_pcre_jit | true | Include PCRE JIT support |
with_debug | true | Include debug module |
with_auth_request | true | Include auth_request module |
with_addition | true | Include addition module |
with_gunzip | true | Include gunzip module |
with_postgres | true | Include PostgreSQL support |
with_http2 | true | Include HTTP/2 support |
with_file_aio | true | Include file AIO support |
Dependencies
None
Example Playbook
Here is an example of how to use this role:
- hosts: webservers
roles:
- ansible-role-openresty
License
MIT
Author Information
Installa
ansible-galaxy install HauptJ.openresty
Licenza
mit
Download
606
Proprietario