Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1.  
  2. ## Version 2019/10/23 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/proxy.conf
  3.  
  4. client_body_buffer_size 128k;
  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.  
  15. # TLS 1.3 early data
  16. proxy_set_header Early-Data $ssl_early_data;
  17.  
  18. # Basic Proxy Config
  19. proxy_set_header Host $host;
  20. proxy_set_header X-Real-IP $remote_addr;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_set_header X-Forwarded-Proto https;
  23. proxy_set_header X-Forwarded-Host $host;
  24. proxy_set_header X-Forwarded-Ssl on;
  25. proxy_redirect http:// $scheme://;
  26. proxy_http_version 1.1;
  27. proxy_set_header Connection "";
  28. #proxy_cookie_path / "/; HTTPOnly; Secure"; # enable at your own risk, may break certain apps
  29. proxy_cache_bypass $cookie_session;
  30. proxy_no_cache $cookie_session;
  31. proxy_buffers 32 4k;
  32. proxy_headers_hash_bucket_size 128;
  33. proxy_headers_hash_max_size 1024;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement