From 719832cb28fe87bf627e9d7771aef0a7eb50e369 Mon Sep 17 00:00:00 2001 From: Alex Harvey Date: Thu, 28 Jan 2016 14:17:49 +1100 Subject: [PATCH] Issue_751 Add simple reverse proxy example to README --- README.markdown | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.markdown b/README.markdown index f0efc9977..6cd49e8f2 100644 --- a/README.markdown +++ b/README.markdown @@ -33,7 +33,16 @@ 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': @@ -41,7 +50,7 @@ nginx::resource::vhost { 'www.puppetlabs.com': } ``` -### Add a Proxy Server +### A more complex proxy example ```puppet nginx::resource::upstream { 'puppet_rack_app': @@ -57,9 +66,6 @@ nginx::resource::vhost { 'rack.puppetlabs.com': } ``` - - - ### Add a smtp proxy ```puppet