From 9191e79b5892272fc3e191643c5084b549b71b7b Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Tue, 25 Oct 2016 19:57:32 -0500 Subject: [PATCH] demo: Access bucket via IPv6-capable endpoint --- demo/_synctiles.py | 3 ++- demo/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/_synctiles.py b/demo/_synctiles.py index 98be2e5..1847f8a 100755 --- a/demo/_synctiles.py +++ b/demo/_synctiles.py @@ -43,7 +43,8 @@ STAMP_VERSION = 'size-510' # change to retile without OpenSlide version bump S3_BUCKET = 'openslide-demo' -BASE_URL = 'https://%s.s3.amazonaws.com/' % S3_BUCKET +S3_REGION = 'us-east-1' +BASE_URL = 'https://%s.s3.dualstack.%s.amazonaws.com/' % (S3_BUCKET, S3_REGION) CORS_ORIGINS = ['*'] DOWNLOAD_BASE_URL = 'http://openslide.cs.cmu.edu/download/openslide-testdata/' DOWNLOAD_INDEX = 'index.json' diff --git a/demo/index.html b/demo/index.html index 17b4b07..c2080e7 100644 --- a/demo/index.html +++ b/demo/index.html @@ -103,7 +103,7 @@ } }, 'timeout': 60000, - 'url': 'https://openslide-demo.s3.amazonaws.com/status.json', + 'url': 'https://openslide-demo.s3.dualstack.us-east-1.amazonaws.com/status.json', }); } $(window).on('visibilitychange', function() { @@ -286,7 +286,7 @@ $('#images').removeClass('loading'). html("
Couldn't load slides
"); }, - 'url': 'https://openslide-demo.s3.amazonaws.com/info.json' + 'url': 'https://openslide-demo.s3.dualstack.us-east-1.amazonaws.com/info.json' }); // CSS doesn't provide a good way to specify a div of height