Skip to content

Instantly share code, notes, and snippets.

@pizzapanther
Last active April 14, 2021 21:34
Show Gist options
  • Save pizzapanther/7be4e19269b88fed8958d502c929925c to your computer and use it in GitHub Desktop.
Save pizzapanther/7be4e19269b88fed8958d502c929925c to your computer and use it in GitHub Desktop.
Fix Zulip Avatars

Problem

Boto doesn't handle gov cloud S3 urls correctly

Fix

Open file like: sudo nano -iw /home/zulip/deployments/{date}/zulip-py3-venv/lib/python3.6/site-packages/boto/s3/connection.py

Edit Lines:

Line 140: DEFAULT = 'us-gov-west-1'  # US Classic Region

Line 164: DefaultHost = 's3.us-gov-west-1.amazonaws.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment