cduckett

SSO.conf

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