Update proxy.conf example with the latest pipeline

On the section Install and configure the proxy
node, step 4, the proxy.conf is not using the
latest pipeline

It's missing couple of pipelines which are
essential (e.g proxy-logging should
be twice, gatekeeper)

Added the pipeline catch_errors which
handles error and sets a transaction id
for every request

Added gatekeeper to remove private request
and headers which client should not
generate

Added proxy-logging which logs request
made to proxy server (e.g. PUT,GET)

Second proxy-logging pipeline is for
middleware the can return custom response

The pipelines are referenced from swift git
repo's proxy.conf-sample file

Retains the existing authtoken keystoneauth
middleware section

Closes-Bug: 1322126

Change-Id: Iee005b0117ac452c724bc40f1393e97fe66ee8c1
This commit is contained in:
Devendran Jagadisan 2014-07-01 23:08:16 +10:00
parent 60aca21344
commit e52bc4b5d6

View File

@ -56,7 +56,7 @@ bind_port = 8080
user = swift
[pipeline:main]
pipeline = healthcheck cache authtoken keystoneauth proxy-server
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache authtoken keystoneauth proxy-logging proxy-server
[app:proxy-server]
use = egg:swift#proxy
@ -84,14 +84,22 @@ admin_tenant_name = service
admin_user = swift
admin_password = <replaceable>SWIFT_PASS</replaceable>
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:cache]
use = egg:swift#memcache
set log_name = cache
[filter:catch_errors]
use = egg:swift#catch_errors
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:gatekeeper]
use = egg:swift#gatekeeper
[filter:proxy-logging]
use = egg:swift#proxy_logging
</programlisting>
<note>
<para>If you run multiple memcache servers, put the