Created
December 19, 2014 06:50
-
-
Save gangadhar-kadam/8b0c44b5955955f05e30 to your computer and use it in GitHub Desktop.
nginx configration
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 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