Skip to content

Instantly share code, notes, and snippets.

@joanscript
Forked from heynemann/gist:3341234
Created March 30, 2015 12:18
Show Gist options
  • Save joanscript/4839e6acb15cbe781b28 to your computer and use it in GitHub Desktop.
Save joanscript/4839e6acb15cbe781b28 to your computer and use it in GitHub Desktop.
upstream thumborbe {
server thumbor.myhost.com:8090 ;
server thumbor.myhost.com:8091 ;
server thumbor.myhost.com:8092 ;
server thumbor.myhost.com:8093 ;
server thumbor.myhost.com:8094 ;
server thumbor.myhost.com:8095 ;
}
location ~* "^/(..)(..)(.){24}/.*(jpg|jpeg|gif|png)(#.*)?$" {
root /path/to/your/thumbor/generated/images/$1/$2;
expires 1M;
error_page 404 = @fetch;
}
location @fetch {
internal;
proxy_pass http://thumborbe$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment