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
What's new in Ruby 2.0
geeforr
342
31k
Designing the Hi-DPI Web
ddemaree
280
34k
Optimizing for Happiness
mojombo
376
69k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Scaling GitHub
holman
458
140k
RailsConf 2023
tenderlove
29
880
Teambox: Starting and Learning
jrom
132
8.7k
BBQ
matthewcrist
85
9.3k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
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 ͰʢΘ Γͱʣ؆୯ʹಈతը૾มαʔόΛ࡞ Δ͜ͱ͕Ͱ͖ͯศརʂʂ