Advertisement
Guest User

Untitled

a guest
Aug 28th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.99 KB | None | 0 0
  1. client_max_body_size 10m;
  2. client_body_buffer_size 128k;
  3.  
  4. proxy_bind $server_addr;
  5. #Timeout if the real server is dead
  6. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  7.  
  8. # Advanced Proxy Config
  9. send_timeout 5m;
  10. proxy_read_timeout 240;
  11. proxy_send_timeout 240;
  12. proxy_connect_timeout 240;
  13. proxy_hide_header X-Frame-Options;
  14.  
  15. # Basic Proxy Config
  16. proxy_set_header Host $host:$server_port;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header X-Forwarded-Proto https;
  20. proxy_set_header X-Forwarded-Host $host;
  21. proxy_set_header X-Forwarded-Ssl on;
  22. proxy_redirect  http://  $scheme://;
  23. proxy_http_version 1.1;
  24. proxy_set_header Connection "";
  25. #proxy_cookie_path / "/; HTTPOnly; Secure"; # enable at your own risk, may break certain apps
  26. proxy_cache_bypass $cookie_session;
  27. proxy_no_cache $cookie_session;
  28. proxy_buffers 32 4k;
  29. proxy_set_header Upgrade $http_upgrade;
  30. proxy_set_header Connection "upgrade";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement