Advertisement
Guest User

frappe.conf

a guest
Aug 6th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1.  
  2. upstream frappe {
  3. server 127.0.0.1:8000 fail_timeout=0;
  4. }
  5.  
  6.  
  7.  
  8.  
  9.  
  10. server {
  11. listen 80 default ;
  12. client_max_body_size 4G;
  13. server_name frappe_default_site;
  14. keepalive_timeout 5;
  15. sendfile on;
  16. root /root/frappe-bench/sites;
  17.  
  18. location /private/ {
  19. internal;
  20. try_files /$uri =424;
  21. }
  22.  
  23. location /assets {
  24. try_files $uri =404;
  25. }
  26.  
  27. location / {
  28. try_files /erpnext/public/$uri @magic;
  29. }
  30.  
  31. location @magic {
  32. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  33. proxy_set_header Host erpnext;
  34. proxy_set_header X-Use-X-Accel-Redirect True;
  35. proxy_read_timeout 120;
  36. proxy_redirect off;
  37. proxy_pass http://frappe;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement