Skip to content

Commit

Permalink
Add an example of reverse proxy to README
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Jan 28, 2016
1 parent c63dd7c commit 7790f76
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 7790f76

Please sign in to comment.