Giter Club home page Giter Club logo

chef-open_resty's Introduction

open_resty

Build Status

A cookbook for installing openresty.

Dependencies

  • apt
  • ark

Basic Usage

run_list: ["recipe[open_resty]"],
"default_attributes": {
  "open_resty": {
    ...
  }
}

Attributes

Default

Name Description Default
node["open_resty"]["user"] The user to run as www-data
node["open_resty"]["home"] The home directory for nginx /var/www

Source

Name Description Default
node["open_resty"]["source"]["version"] The version to install 1.9.3.2
node["open_resty"]["source"]["checksum"] The checksum for the version see attributes/default.rb

Nginx

Name Description Default
node["open_resty"]["nginx"]["dir"] Where to setup nginx /etc/nginx
node["open_resty"]["nginx"]["log_dir"] Nginx log directory /var/log/nginx

These all correlate to nginx directives (of the same name)

Name Default
node["open_resty"]["nginx"]["worker_processes"] auto - 1 per CPU
node["open_resty"]["nginx"]["worker_rlimit_nofile"] 200,000
node["open_resty"]["nginx"]["worker_connections"] 4096
node["open_resty"]["nginx"]["pid"] /var/run/nginx.pid
node["open_resty"]["nginx"]["gzip"] on
node["open_resty"]["nginx"]["gzip_buffers"] 16 8k
node["open_resty"]["nginx"]["gzip_http_version"] 1.0
node["open_resty"]["nginx"]["gzip_comp_level"] 6
node["open_resty"]["nginx"]["gzip_min_length"] 256
node["open_resty"]["nginx"]["gzip_proxied"] any
node["open_resty"]["nginx"]["gzip_disable"] MSIE [1-6]\.(?!\.*SV1)
node["open_resty"]["nginx"]["gzip_vary"] on
node["open_resty"]["nginx"]["gzip_types"] see attributes/nginx.rb
node["open_resty"]["nginx"]["open_file_cache_max"] 1000
node["open_resty"]["nginx"]["open_file_cache_inactive"] 20s
node["open_resty"]["nginx"]["open_file_cache_valid"] 30s
node["open_resty"]["nginx"]["open_file_cache_min_uses"] 2
node["open_resty"]["nginx"]["open_file_cache_errors"] on
node["open_resty"]["nginx"]["server_names_hash_bucket_size"] 64
node["open_resty"]["nginx"]["types_hash_bucket_size"] 64
node["open_resty"]["nginx"]["types_hash_max_size"] 2048
node["open_resty"]["nginx"]["client_body_buffer_size"] 8k
node["open_resty"]["nginx"]["client_max_body_size"] 20M
node["open_resty"]["nginx"]["large_client_header_buffers"] 32 32k
node["open_resty"]["nginx"]["lua_use_default_type"] off
node["open_resty"]["nginx"]["lua_package_path"] ;;
node["open_resty"]["nginx"]["lua_package_cpath"] ;;

Lua Settings

Name Description Default
node["open_resty"]["lua_modules"] An array of modules to make available during init_by_lua []

chef-open_resty's People

Contributors

pseudomuto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

chef-open_resty's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.