uggedal/puppet-module-nginx — pull request #4 by jesusaurus (2012-03-31 00:22:56+00:00)
Title: Add the ability to create a reverse proxy

Here is an example that creates an ssl reverse proxy to another application running on localhost. This is useful if the other web app is not able to do ssl on its own.

nginx::site {
"rstudio-proxy":
domain => "example.com",
ssl => true,
ssl_certificate => "/path/to/cert",
ssl_certificate_key => "/path/to/key",
keepalive => 120,
proxy => true,
proxy_domain => '127.0.0.1',
proxy_port => '8080',
}