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
100
next stage infrastructure
yano3
1
13k
Dynamic image transformation server Okara BETA
yano3
1
5.6k
Featured
See All Featured
Visualization
eitanlees
145
15k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
The Pragmatic Product Professional
lauravandoore
31
6.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Fireside Chat
paigeccino
34
3k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Thoughts on Productivity
jonyablonski
67
4.3k
Ruby is Unlike a Banana
tanoku
97
11k
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 ͰʢΘ Γͱʣ؆୯ʹಈతը૾มαʔόΛ࡞ Δ͜ͱ͕Ͱ͖ͯศརʂʂ