From 6c215e4f04527c45ada847f0462cc9bb85f4ebde Mon Sep 17 00:00:00 2001 From: Alejandro Andreu Date: Fri, 17 Feb 2017 18:31:39 +0100 Subject: [PATCH] proxy pass midonet-api Change-Id: Idf9b0e93e38101b0b17cc94e3f4f0371955641bf --- manifests/mem.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/mem.pp b/manifests/mem.pp index 6118222..9718ac0 100644 --- a/manifests/mem.pp +++ b/manifests/mem.pp @@ -172,7 +172,7 @@ class midonet::mem( ) inherits midonet::params { $mem_ws = $insights_ssl? {true => 'wss://' , default => 'ws://'} - $api_proto = $api_ssl? {true => 'https://' , default => 'http://'} + $api_proto = $api_ssl? {true => 'https://' , default => 'http://'} validate_bool($mem_api_token) @@ -241,6 +241,10 @@ class midonet::mem( path => '/var/www/html/midonet-manager', } ], + proxy_pass +> [ + { 'path' => '/midonet-api', 'url' => 'http://localhost:8181' }, + ], + proxy_preserve_host => true } } }