Amazon S3による静的webサイトホスティングの紹介、実際のサイト二つを例に料金の試算、nanocを使ったサイト制作・S3への公開フローの紹介。 2014/12/06 JAWS-UG Shimane vol.3 発表資料(一部修正)。
Or “How to set a far future Expires header in S3 to appease the YSlow gods”. I’m working on a Ruby on Rails site that stores images and other static content on Amazon S3. We want Amazon to serve all of our images with a Cache-Control or Expires header set to a point in the very far future. This will avoid unnecessary HTTP requests on subsequent page views, making the site faster for users and cons
Updated on 4/27: Added the workaround for the bug in the Mac's flash plugin. (First things first, there is a rails plugin that automates a lot of this process. I didn't like the way it worked for a few reasons (like making swfobject.js into one big javascript variable), so I decided not to use it. PJ at GitHub mentioned that they use it, so it must not be all bad.) These are some stumbling blocks
S3SwfUpload =========== S3SwfUpload allow user uploading a file to S3 directly, so you can save the cost of uploading process in your app server. Install ======= ./script/plugin install git://github.com/GreenAsJade/s3-swf-upload-plugin.git Example ======= There is an example app showing how to use this at http://github.com/GreenAsJade/demo-s3-swf-upload/tree/master It's live at http://demo-s3-swf-
Amazon S3 でできることをざーーーーっとメモ。 ■基本 バケットを作って、その中にディレクトリ/ファイルをいくらでも放り込める バケットには誰でも見れる/許可したAmazonユーザーのみ見れる、などのアクセス権を設定可能 容量と転送量とアクセス回数で課金。容量は安く、転送量は中くらいでアクセス回数はぼーっとしてると結構かかりそう。twitter はいくら払っているのだろう。 Content-Type も指定してアップできるので、S3 のデータはブラウザから簡単に参照できる。 バケット名.s3.amazonaws.com というドメインになるが、DNS の CNAME を設定することで独自ドメインにあるように見せることも可能。 上記の方法はバケット名をドメイン名にすること。つまり image.sidefeed.com というドメインで S3 を使いたいなら バケット名を image.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く