Commit 10ce89df authored by James T. Lee's avatar James T. Lee
Browse files

revproxy: Syntax tweaks

parent 9e54f698
...@@ -17,20 +17,20 @@ define nest::lib::revproxy ( ...@@ -17,20 +17,20 @@ define nest::lib::revproxy (
$proxy_pass_match = [ $proxy_pass_match = [
$websockets ? { $websockets ? {
undef => [], undef => [],
default => [{ default => {
'path' => "^/(${websockets})$", 'path' => "^/(${websockets})$",
'url' => "ws://${destination}/\$1", 'url' => "ws://${destination}/\$1",
'reverse_urls' => [] 'reverse_urls' => [],
}], },
}, },
$allow_encoded_slashes ? { $allow_encoded_slashes ? {
true => [{ true => {
'path' => '^/(.*)$', 'path' => '^/(.*)$',
'url' => "http://${destination}/\$1", 'url' => "http://${destination}/\$1",
'keywords' => ['nocanon'], 'keywords' => ['nocanon'],
'reverse_urls' => [], 'reverse_urls' => [],
}], },
default => [], default => [],
}, },
].flatten ].flatten
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment