Advertisement
schmittyd

proxy.conf

Dec 26th, 2023 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.48 KB | None | 0 0
  1. #SSO
  2. client_max_body_size 10m;
  3. client_body_buffer_size 128k;
  4. proxy_bind $server_addr;
  5. proxy_buffers 32 4k;
  6.  
  7. proxy_headers_hash_max_size 5120;
  8. proxy_headers_hash_bucket_size 640;
  9.  
  10. #Timeout if the real server is dead
  11. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  12.  
  13. # Advanced Proxy Config
  14. send_timeout 5m;
  15. proxy_read_timeout 240s;
  16. proxy_send_timeout 240s;
  17. proxy_connect_timeout 75s;
  18. proxy_hide_header X-Frame-Options;
  19. #add_header X-Frame-Options "SAMEORIGIN";
  20. #add_header X-Frame-Options "ALLOW-FROM URI flix.dizzleent.net";
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection "upgrade";
  23.  
  24. # Basic Proxy Config
  25. proxy_set_header Host $host:$server_port;
  26. proxy_set_header X-Real-IP $remote_addr;
  27. proxy_set_header    X-Forwarded-Host    $server_name;
  28. proxy_set_header    X-Forwarded-Ssl     on;
  29. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  30. proxy_set_header X-Forwarded-Proto https;
  31. proxy_redirect  http://  $scheme://;
  32. proxy_http_version 1.1;
  33. proxy_set_header Connection "";
  34. proxy_cache_bypass $cookie_session;
  35. proxy_no_cache $cookie_session;
  36.  
  37. gzip on;
  38.     gzip_disable "msie6";
  39.  
  40.     gzip_comp_level 6;
  41.     gzip_min_length 1100;
  42.     gzip_buffers 16 8k;
  43.     gzip_proxied any;
  44.     gzip_types
  45.         text/plain
  46.         text/css
  47.         text/js
  48.         text/xml
  49.         text/javascript
  50.         application/javascript
  51.         application/x-javascript
  52.         application/json
  53.         application/xml
  54.         application/rss+xml
  55.         image/svg+xml;
  56.  
  57.     tcp_nodelay on;
  58.  
  59.  
Tags: nginx conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement