HauptJ.openresty

OpenResty

配置和安装 OpenResty NGINX

构建状态

要求

  • Ansible 2.3+
  • CentOS 7.4+
  • Ubuntu 16.04+ [仅限源安装]

安装

  1. 叉取这个仓库
  2. git submodule add <git 主机> roles/ansible-role-openresty

Ansible Galaxy: HauptJ.openresty

变量

Openresty

名称 默认值 描述
resty_install_from_source true 从源码安装 [true] 或从仓库 [false]
resty_compile_threads 2 配置和编译时使用的线程数量
resty_default_server true 设置默认(欢迎)网页服务器和网页
resty_default_web_dir /usr/local/openresty/nginx/html/default 默认网页目录
resty_sites_dir /usr/local/openresty/nginx/sites 站点 / 虚拟主机目录
resty_web_user nginx OpenResty网页服务用户和组
resty_conf_dir /usr/local/openresty/nginx/conf 配置文件目录
resty_log_dir /var/log/openresty 日志文件目录
openresty_version 1.11.2.5 OpenResty版本
with_luajit true 是否支持luajit编译
with_dav true 是否支持dav编译
with_flv true 是否支持flv编译
with_geoip true 是否支持geoip编译
with_gzip_stati true 是否支持gzip_static编译
with_image_filter true 是否支持image_filter编译
with_realip true 是否支持realip编译
with_stub_status true 是否支持stub_status编译
with_ssl true 是否支持ssl编译
with_sub true 是否支持sub编译
with_xslt true 是否支持xslt编译
with_ipv6 true 是否支持IPv6编译
with_sha1 "/usr/include/openssl" 是否支持sha1编译 [已废弃]
with_md5 "/usr/include/openssl" 是否支持md5编译 [已废弃]
with_mail true 是否支持邮件编译
with_mail_ssl true 是否支持mail_ssl编译
with_secure_link true 是否支持secure_link编译
with_pcre_jit true 是否支持pcre jit编译
with_debug true 是否支持debug模块编译
with_auth_request true 是否支持auth_request模块编译
with_addition true 是否支持addition_module编译
with_gunzip true 是否支持gunzip模块编译
with_postgres true 是否支持PostgreSQL编译
with_http2 true 是否支持http2编译
with_file_aio true 是否支持file AIO

依赖

示例Playbook

包含一个如何使用该角色的示例:

- hosts: webservers
  roles:
     - ansible-role-openresty

许可证

MIT

作者信息

  1. 乔昂·保罗·塞雷加特 seregatte@gmail.com
  1. 乔书亚·豪普特 josh@hauptj.com
关于项目

Installs OpenResty Nginx

安装
ansible-galaxy install HauptJ.openresty
许可证
mit
下载
606
拥有者