|
@@ -33,7 +33,16 @@ This module manages NGINX configuration.
|
|
class { 'nginx': }
|
|
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
|
|
```puppet
|
|
nginx::resource::vhost { 'www.puppetlabs.com':
|
|
nginx::resource::vhost { 'www.puppetlabs.com':
|
|
@@ -41,7 +50,7 @@ nginx::resource::vhost { 'www.puppetlabs.com':
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
-### Add a Proxy Server
|
|
|
|
|
|
+### A more complex proxy example
|
|
|
|
|
|
```puppet
|
|
```puppet
|
|
nginx::resource::upstream { 'puppet_rack_app':
|
|
nginx::resource::upstream { 'puppet_rack_app':
|
|
@@ -57,9 +66,6 @@ nginx::resource::vhost { 'rack.puppetlabs.com':
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
### Add a smtp proxy
|
|
### Add a smtp proxy
|
|
|
|
|
|
```puppet
|
|
```puppet
|