Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pauldardeau/0785508372425291ae1a3369d92ae6cd to your computer and use it in GitHub Desktop.

Select an option

Save pauldardeau/0785508372425291ae1a3369d92ae6cd to your computer and use it in GitHub Desktop.
swift temporal
Verify that tempurl is in proxy pipeline
Add 'methods' to tempurl config section in proxy-server.conf
[filter:tempurl]
use = egg:swift#tempurl
methods = GET HEAD PUT DELETE POST
swift post -m "Temp-URL-Key: my_super_secret_key"
swift tempurl GET 3600 /v1/AUTH_test/test-container/test.txt my_super_secret_key
/v1/AUTH_test/test-container/test.txt?temp_url_sig=d916b6a9c56f37c5ee6f0bf08db898d22697099c&temp_url_expires=1469569156
wget 'http://127.0.0.1:8080/v1/AUTH_test/test-container/test.txt?temp_url_sig=d916b6a9c56f37c5ee6f0bf08db898d22697099c&temp_url_expires=1469569156'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment