Created
January 23, 2018 06:01
-
-
Save chianingwang/e25538f3df123d8320845a3b464de5f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### after run proxy container### | |
$ apt install -y git curl | |
$ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | |
$ python get-pip.py | |
$ pip install boto3 | |
$ git clone https://github.com/swiftstack/swift-redirector.git | |
$ cd swift-redirector | |
$ python setup.py install | |
# test import swift-redirector | |
$ python -c "import swift_redirector; print swift_redirector" | |
$ vi /etc/swift/proxy-server.conf | |
[pipeline] | |
pipeline = healthcheck cache tempauth swift_redirector proxy-server | |
[filter:swift_redirector] | |
use = egg:swift_redirector#swift_redirector | |
primary = swift | |
locations = swift s3 | |
swift.container = jwangtest | |
swift.type = swift | |
swift.authurl = http://127.0.0.1:8080/auth/v1.0 | |
swift.user = test:tester | |
swift.key = testing | |
swift.insecure = True | |
s3.type = s3 | |
s3.bucket = jwangtest | |
s3.region = us-west-1 | |
s3.user = ss | |
s3.key = AKIAJIQ6BVDJNXDUKTSA | |
s3.insecure = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment