Skip to content

Commit

Permalink
Merge pull request #752 from alexharv074/Issue_751
Browse files Browse the repository at this point in the history
Issue 751 Add an example for a simple reverse proxy to the README
  • Loading branch information
jfryman committed Jan 28, 2016
2 parents 0e3cddc + 719832c commit adbb76a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,24 @@ This module manages NGINX configuration.
class { 'nginx': }
```

### Creating a new virtual host
### A simple reverse proxy

```puppet
nginx::resource::vhost { 'kibana.myhost.com':
listen_port => 80,
proxy => 'http://localhost:5601',
}
```

### A virtual host with static content

```puppet
nginx::resource::vhost { 'www.puppetlabs.com':
www_root => '/var/www/www.puppetlabs.com',
}
```

### Add a Proxy Server
### A more complex proxy example

```puppet
nginx::resource::upstream { 'puppet_rack_app':
Expand All @@ -57,9 +66,6 @@ nginx::resource::vhost { 'rack.puppetlabs.com':
}
```




### Add a smtp proxy

```puppet
Expand Down

0 comments on commit adbb76a

Please sign in to comment.