Upgrade to Pro — share decks privately, control downloads, hide ads and more …

calamel-okara-beta

Teppei Yano
February 18, 2015
11k

 calamel-okara-beta

Teppei Yano

February 18, 2015
Tweet

Transcript

  1. ͱ͋ΔECαΠτʹಈతը૾
    ม׵Λಋೖͨ͠࿩
    2015-02-18
    ը૾ม׵ Night LT
    !
    Teppei Yano
    @yano3
    ΍ͷ͞Μ

    View full-size slide

  2. Χϥϝϧ
    • http://calamel.jp
    • γϣοϐϯάϞʔϧαΠτ
    • ঎඼ͷιʔε͸༷ʑ
    • ΧϥʔϛʔγϣοϓʢΧʔτ ASPʣ
    • minne
    • ଞ...

    View full-size slide

  3. ໰୊఺
    • ಈతͳը૾ม׵͸͍ͯ͠ͳ͍
    • ఏڙݩʹΑͬͯը૾ͷ࢓༷͕͞·͟·
    • ετϨʔδ
    • ը૾ܗࣜ
    • αΠζ

    View full-size slide

  4. ը૾ URL ྫ
    http://img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?20141202175024

    View full-size slide

  5. ը૾ URL ྫ
    https://d1jw6zxxpn0xgs.cloudfront.net/
    productimages/4039048/large/
    2bdb85341016e350fe9a9d0001a8752caa269c65.j
    pg

    View full-size slide

  6. ͦ͜Ͱ࡞Γ·ͨ͠

    View full-size slide

  7. ͓͔ΒʢԾʣ
    • ಈతը૾ม׵αʔό
    • ngx_small_light
    • ngx_mruby
    • CDN (CloudFront)
    • ໊લͷ༝དྷ͸ʢ͈́

    View full-size slide

  8. URL ྫʢ͓͔Βʣ
    http://d39txhluoaeylq.cloudfront.net/calamel/item/
    178x178fffffff/
    a93dd6c33564965c84813800b786997ae49384b2.
    jpg/img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?2014120

    View full-size slide

  9. URL ྫʢ͓͔Βʣ
    http://d39txhluoaeylq.cloudfront.net/calamel/item/
    178x178fffffff/
    a93dd6c33564965c84813800b786997ae49384b2.
    jpg/img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?2014120

    View full-size slide

  10. URL ྫʢ͓͔Βʣ
    http://d39txhluoaeylq.cloudfront.net/calamel/item/
    178x178fffffff/
    a93dd6c33564965c84813800b786997ae49384b2.
    jpg/img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?2014120

    View full-size slide

  11. URL ྫʢ͓͔Βʣ
    http://d39txhluoaeylq.cloudfront.net/calamel/item/
    178x178fffffff/
    a93dd6c33564965c84813800b786997ae49384b2.
    jpg/img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?2014120

    View full-size slide

  12. URL ྫʢ͓͔Βʣ
    http://d39txhluoaeylq.cloudfront.net/calamel/item/
    178x178fffffff/
    a93dd6c33564965c84813800b786997ae49384b2.
    jpg/img05.shop-pro.jp/PA01018/434/product/
    84264501.jpg?2014120

    View full-size slide

  13. ngx_small_light
    ʢ͈́

    View full-size slide

  14. ngx_mruby
    ʢ͈́

    View full-size slide

  15. ngx_mruby
    ϋογϡͷ֬ೝ

    View full-size slide

  16. ngx_mruby
    ϋογϡͷ֬ೝ
    mruby_set $allowed '/path/to/check_hash.rb';
    if ($allowed != true) {
    return 403;
    }

    View full-size slide

  17. ngx_mruby
    URL ม׵

    View full-size slide

  18. ngx_mruby
    URL ม׵
    mruby_set $smalllight_path /path/to/okara_to_smalllight.rb;
    proxy_pass ʢ͈́

    View full-size slide

  19. ࠓޙ
    • WebP

    View full-size slide

  20. ·ͱΊ
    ngx_small_light ͱ ngx_mruby ͰʢΘ
    Γͱʣ؆୯ʹಈతը૾ม׵αʔόΛ࡞
    Δ͜ͱ͕Ͱ͖ͯศརʂʂ

    View full-size slide