Skip to content

Instantly share code, notes, and snippets.

@gangadhar-kadam
Created December 19, 2014 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gangadhar-kadam/8b0c44b5955955f05e30 to your computer and use it in GitHub Desktop.
Save gangadhar-kadam/8b0c44b5955955f05e30 to your computer and use it in GitHub Desktop.
nginx configration
upstream frappe {
server 192.168.0.104:7893 fail_timeout=0;
}
server {
listen 80 ;
client_max_body_size 4G;
server_name stitch3.tailorpad.com stitch4.tailorpad.com stith1.tailorpad.com;
keepalive_timeout 5;
sendfile on;
root /home/indictrans/webapps/tailorpad_super/frappe-bench/sites;
location /private/ {
internal;
try_files /$uri =424;
}
location /assets {
try_files $uri =404;
}
location / {
try_files /stitch3.tailorpad.com/public/$uri @magic;
}
location @magic {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Use-X-Accel-Redirect True;
proxy_read_timeout 120;
proxy_redirect off;
proxy_pass http://frappe;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment