Defined Type: external_proxy::instance

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

Overview

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)


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

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