Created
June 14, 2015 15:01
-
-
Save eduherraiz/9618f2dee94d7876e735 to your computer and use it in GitHub Desktop.
Nginx thumbor configuration
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 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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey ! I'm trying to do a simple thumbor setup , my thumbor dir is /home/thumbor
And nginx config is
And I'm running into no upstream found nginx error. Can't find a fix around that , any help would be appreciated . Thanks