Giter Site home page Giter Site logo

nginx's Introduction

Description

Installs nginx from package OR source code and sets up configuration handling similar to Debian's Apache2 scripts.

Requirements

Cookbooks

  • build-essential (for nginx::source)
  • runit (for nginx::source)

Platform

Debian or Ubuntu though may work where 'build-essential' works, but other platforms are untested.

Attributes

All node attributes are set under the nginx namespace.

  • version - sets the version to install.
  • dir - configuration dir.
  • log_dir - where logs go.
  • user - user to run as.
  • binary - path to nginx binary.
  • gzip - all attributes under the gzip namespace configure the gzip module.
  • keepalive - whether to use keepalive.
  • keepalive_timeout - set the keepalive timeout.
  • worker_processes - number of workers to spawn.
  • worker_connections - number of connections per worker.
  • server_names_hash_bucket_size
  • url - URL where to download the nginx source tarball

The following attributes are set at the 'normal' node level via the nginx::source recipe.

  • install_path - for nginx::source, sets the --prefix installation.
  • src_binary - for nginx::source, sets the binary location.
  • configure_flags - for nginx::source, an array of flags to use for compilation.

Usage

Provides two ways to install and configure nginx.

  • Install via native package (nginx::default)
  • Install via compiled source (nginx::source)

Both recipes implement configuration handling similar to the Debian Apache2 site enable/disable.

There's some redundancy in that the config handling hasn't been separated from the installation method (yet), so use only one of the recipes.

Some of the attributes mentioned above are only set in the nginx::source recipe. They can be overridden by setting them via a role in override_attributes.

License and Author

Author:: Joshua Timberman ([email protected]) Author:: Adam Jacob ([email protected]) Author:: AJ Christensen ([email protected])

Copyright:: 2008-2011, Opscode, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

nginx's People

Contributors

adamhjk avatar fnichol avatar freerobby avatar nathenharvey avatar reset avatar

Stargazers

 avatar

Watchers

 avatar

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.