Skip to content

pmvilaca/nginx-reverse-proxy-cookbook

Repository files navigation

nginx-reverse-proxy-cookbook

This cookbook provides an easy way to configure nginx as a reverse proxy to a single backend service

Supported Platforms

Please check the opscode nginx cookbook

Attributes

Key Type Description Default
['nginx]['reverseproxy']['destination_ip'] IP address IP address of the backend service that will be behind the proxy 127.0.0.1
['nginx]['reverseproxy']['destination_port'] Port Port of the backend service that will be behind the proxy 8080

Usage

nginx-reverse-proxy::default

Include nginx-reverse-proxy in your node's run_list:

{
  "run_list": [
    "recipe[nginx-reverse-proxy::default]"
  ]
}

If you want to change the default port:

{
  "run_list": [
      "recipe[nginx-reverse-proxy::default]"
  ],
  "nginx": {
      "reverseproxy":{
        "destination_port": 7990
      }
  }
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Pedro Vilaca

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages