Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
calamel-okara-beta
Search
Teppei Yano
February 18, 2015
1
11k
calamel-okara-beta
Teppei Yano
February 18, 2015
Tweet
Share
More Decks by Teppei Yano
See All by Teppei Yano
PEPABO EC tech conference ngx_mruby 2020
yano3
1
1k
okara updates
yano3
0
72
create puppet module
yano3
0
52
let me introduce you
yano3
0
98
next stage infrastructure
yano3
1
13k
Dynamic image transformation server Okara BETA
yano3
1
5.6k
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
290
Gamification - CAS2011
davidbonilla
80
5k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Git: the NoSQL Database
bkeepers
PRO
426
64k
Side Projects
sachag
452
42k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.9k
Why Our Code Smells
bkeepers
PRO
334
57k
A designer walks into a library…
pauljervisheath
202
24k
Scaling GitHub
holman
458
140k
Being A Developer After 40
akosma
86
590k
Designing the Hi-DPI Web
ddemaree
280
34k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
Transcript
ͱ͋ΔECαΠτʹಈతը૾ มΛಋೖͨ͠ 2015-02-18 ը૾ม Night LT ! Teppei Yano @yano3
ͷ͞Μ
Χϥϝϧ • http://calamel.jp • γϣοϐϯάϞʔϧαΠτ • ͷιʔε༷ʑ • ΧϥʔϛʔγϣοϓʢΧʔτ ASPʣ
• minne • ଞ...
• ಈతͳը૾ม͍ͯ͠ͳ͍ • ఏڙݩʹΑͬͯը૾ͷ༷͕͞·͟· • ετϨʔδ • ը૾ܗࣜ •
αΠζ
ը૾ URL ྫ http://img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?20141202175024
ը૾ URL ྫ https://d1jw6zxxpn0xgs.cloudfront.net/ productimages/4039048/large/ 2bdb85341016e350fe9a9d0001a8752caa269c65.j pg
ͦ͜Ͱ࡞Γ·ͨ͠
͓͔ΒʢԾʣ • ಈతը૾มαʔό • ngx_small_light • ngx_mruby • CDN (CloudFront)
• ໊લͷ༝དྷʢ͈́
URL ྫʢ͓͔Βʣ http://d39txhluoaeylq.cloudfront.net/calamel/item/ 178x178fffffff/ a93dd6c33564965c84813800b786997ae49384b2. jpg/img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?2014120
URL ྫʢ͓͔Βʣ http://d39txhluoaeylq.cloudfront.net/calamel/item/ 178x178fffffff/ a93dd6c33564965c84813800b786997ae49384b2. jpg/img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?2014120
URL ྫʢ͓͔Βʣ http://d39txhluoaeylq.cloudfront.net/calamel/item/ 178x178fffffff/ a93dd6c33564965c84813800b786997ae49384b2. jpg/img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?2014120
URL ྫʢ͓͔Βʣ http://d39txhluoaeylq.cloudfront.net/calamel/item/ 178x178fffffff/ a93dd6c33564965c84813800b786997ae49384b2. jpg/img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?2014120
URL ྫʢ͓͔Βʣ http://d39txhluoaeylq.cloudfront.net/calamel/item/ 178x178fffffff/ a93dd6c33564965c84813800b786997ae49384b2. jpg/img05.shop-pro.jp/PA01018/434/product/ 84264501.jpg?2014120
ngx_small_light ʢ͈́
ngx_mruby ʢ͈́
ngx_mruby ϋογϡͷ֬ೝ
ngx_mruby ϋογϡͷ֬ೝ mruby_set $allowed '/path/to/check_hash.rb'; if ($allowed != true) {
return 403; }
ngx_mruby URL ม
ngx_mruby URL ม mruby_set $smalllight_path /path/to/okara_to_smalllight.rb; proxy_pass ʢ͈́
ࠓޙ • WebP
·ͱΊ ngx_small_light ͱ ngx_mruby ͰʢΘ Γͱʣ؆୯ʹಈతը૾มαʔόΛ࡞ Δ͜ͱ͕Ͱ͖ͯศརʂʂ