dev/provisioning/modules/apache/templates/mod/rpaf.conf.erb
author ymh <ymh.work@gmail.com>
Wed, 09 Nov 2016 23:41:15 +0100
changeset 407 2dba812c7ef2
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
add a way to build rpm for puppet files, correct elasticsearch provisioning, correct error on elasticsearch queries + tests
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# Enable reverse proxy add forward
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
RPAFenable On
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
# RPAFsethostname will, when enabled, take the incoming X-Host header and
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
# update the virtual host settings accordingly. This allows to have the same
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
# hostnames as in the "real" configuration for the forwarding proxy.
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
<% if @sethostname -%>
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
RPAFsethostname On
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
<% else -%>
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
RPAFsethostname Off
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
<% end -%>
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
# Which IPs are forwarding requests to us
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
RPAFproxy_ips <%= Array(@proxy_ips).join(" ") %>
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
# Setting RPAFheader allows you to change the header name to parse from the
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
# default X-Forwarded-For to something of your choice.
b0b56e0f8c7f Add contributor edition
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
RPAFheader <%= @header %>