Created
June 14, 2015 15:01
-
-
Save eduherraiz/9618f2dee94d7876e735 to your computer and use it in GitHub Desktop.
Revisions
-
psyduck787 created this gist
Jun 14, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ upstream thumbor { server 127.0.0.1:8090; server 127.0.0.1:8091; server 127.0.0.1:8092; server 127.0.0.1:8093; } server { listen 80; server_name thumbor.domain.com; client_max_body_size 50M; access_log /var/log/nginx/thumbor-access.log; error_log /var/log/nginx/thumbor-error.log; location ~* "^/(..)(..)(.+)?$" { root /thumbor/path/result_storage/v2/$1/$2; expires 1M; error_page 404 = @fetch; } location @fetch { internal; proxy_pass http://thumbor$request_uri; } }