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
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Gamification - CAS2011
davidbonilla
80
5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Designing for humans not robots
tammielis
250
25k
RailsConf 2023
tenderlove
29
900
Optimising Largest Contentful Paint
csswizardry
33
2.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Happy Clients
brianwarren
98
6.7k
How STYLIGHT went responsive
nonsquared
95
5.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Being A Developer After 40
akosma
87
590k
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 ͰʢΘ Γͱʣ؆୯ʹಈతը૾มαʔόΛ࡞ Δ͜ͱ͕Ͱ͖ͯศརʂʂ