This cookbook provides an easy way to configure nginx as a reverse proxy to a single backend service
Please check the opscode nginx cookbook
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 |
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
}
}
}
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Pedro Vilaca