Defined Type: external_proxy::instance

Defined in:
modules/external_proxy/manifests/instance.pp

Overview

SPDX-License-Identifier: Apache-2.0

Define: external_proxy::instance

Provision an nginx vhost that acts as a reverse proxy to the given URL.

Parameters:

proxied

URL of proxied server. Example 'localhost:8443'

acls

Ordered list of nginx access control directives to apply. See nginx.org/en/docs/http/ngx_http_access_module.

trusted_xff

List of hosts trusted to provide valid X-Forwarded-For values. See nginx.org/en/docs/http/ngx_http_realip_module.html

port

Port that nginx should listen on. Default: 80.

default

Should this vhost be the default for Host values that are otherwise unhandled? Default: false.

Parameters:

  • proxied (Any)
  • acls (Any)
  • trusted_xff (Any)
  • port (Any) (defaults to: 80)
  • default (Any) (defaults to: false)


21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/external_proxy/manifests/instance.pp', line 21

define external_proxy::instance (
    $proxied,
    $acls,
    $trusted_xff,
    $port    = 80,
    $default = false,
){
    include ::nginx
    nginx::site { $title:
        content => template('external_proxy/instance.conf.erb'),
    }
}