Skip to content

Instantly share code, notes, and snippets.

@eduherraiz
Created June 14, 2015 15:01
Show Gist options
  • Select an option

  • Save eduherraiz/9618f2dee94d7876e735 to your computer and use it in GitHub Desktop.

Select an option

Save eduherraiz/9618f2dee94d7876e735 to your computer and use it in GitHub Desktop.

Revisions

  1. @psyduck787 psyduck787 created this gist Jun 14, 2015.
    26 changes: 26 additions & 0 deletions thumbor.conf
    Original 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;
    }
    }