No access to site after set S3 credentials

This should do it:

https://github.com/discourse/discourse/commit/4bb8db024c247f20af9245723ebea4c474eeb16a