1

I have a static website with 7844 pages on 1 topic (schools in Holland). This is based on 7844 named folders with 7844 index.html files, total size 209 MB. E.g. this is a published page.

The manual upload to my AWS S3 bucket (management console, select bucket, select folder, select upload, drag and drop) is very slow, it sometimes takes 12 hours to upload a new version of all pages.

I therefore wanted my Synology DiskStation to do the upload in the background. Using the DiskStation "Cloud Sync" tool.

The upload runs but the result is strange: the uploaded page is no longer served as webpage by S3 but instead triggers a download of the index.html files. E.g. this page that was uploaded by DiskStation Cloud Sync.

Hoping for an explanation of this behavior and advise on the best solution to do the upload in an easy way... (I am looking into using boto on python now).

Community
  • 1
  • 1
Wouter
  • 1,296
  • 2
  • 14
  • 32
  • 1
    The mime type on the page you linked is "document". It would need to be "text/html" for the browser to view it as a website. It looks like DiskStation isn't setting the correct mime types for a static website. You might not be able to use DiskStation for this, as I'm not aware of a way to change the mime types DiskStation will set on S3 objects it uploads. – Mark B Sep 04 '16 at 12:49
  • Thanks, mime type text/html, interesting! I have raised a technical support request with Synology on this and will update my question with the outcome of that. – Wouter Sep 05 '16 at 09:43

1 Answers1

0

FYI Synology tech support has analysed the logfiles and confirms that this is an issue with the software. I.e. Cloud Sync 'isn't setting the correct mime types for a static website' as Mark suggested. -> The issue is that the mime type on set by Cloud Sync is "document". It would need to be "text/html" for the browser to view it as a website.

Synology Technical Support recorded the issue and states that their developers are working on it and hope to fix it in future Cloud Sync package update.

Wouter
  • 1,296
  • 2
  • 14
  • 32
  • @andreas sorry, I don’t know the status as I don’t use this solution anymore as I sync my files using the boto3 AWS SDK for Python – Wouter Sep 01 '19 at 10:52