redirect middleware for swift
Python
Switch branches/tags
Nothing to show
Latest commit 9fea82e Dec 6, 2017 @anke committed on GitHub Enterprise update readme
Permalink
Failed to load latest commit information.
README.md update readme Dec 6, 2017
webhook.py initial commit Dec 6, 2017

README.md

redirectmiddleware

After following this tutorial https://blog.zhaw.ch/icclab/how-to-set-up-a-standalone-swift-installation-in-a-vm-and-test-it-revisited-in-2017 you can follow these steps to add the redirectmiddleware to the vm for testing.

  1. Copy the webhook.py file into the /vagrant/swift/swift/common/middleware directory.

  2. Make following changes to the 20_settings.conf and the 10_default.conf file in the /etc/swift/proxy-server/proxy-server.conf.d

  3. Add the middleware in the pipeline in the 20_settings.conf file [pipeline:main] pipeline = catch_errors healthcheck webhook proxy-logging cache container_sync bulk tempurl tempauth staticweb slo dlo versioned_writes keymaster encryption proxy-logging proxy-server

  4. Add the middleware config in the 10_default.conf [filter:webhook] use = egg:swift#webhook

  5. Add the middleware entry point to the bottom of the entry_points.txt file in the swift/swift.egg-info/ directory: webhook = swift.common.middleware.webhook:webhook_factory

  6. swift-init restart all

  7. Done

  8. Profit