-
-
Save joanscript/4839e6acb15cbe781b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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