Nodiaque

proxy.conf

Jun 10th, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. ## Version 2023/02/09 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/proxy.conf.sample
  2.  
  3. # Timeout if the real server is dead
  4. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
  5.  
  6. # Proxy Connection Settings
  7. proxy_buffers 32 4k;
  8. proxy_connect_timeout 240;
  9. proxy_headers_hash_bucket_size 128;
  10. proxy_headers_hash_max_size 1024;
  11. proxy_http_version 1.1;
  12. proxy_read_timeout 240;
  13. proxy_redirect http:// $scheme://;
  14. proxy_send_timeout 240;
  15.  
  16. # Proxy Cache and Cookie Settings
  17. proxy_cache_bypass $cookie_session;
  18. #proxy_cookie_path / "/; Secure"; # enable at your own risk, may break certain apps
  19. proxy_no_cache $cookie_session;
  20.  
  21. # Proxy Header Settings
  22. proxy_set_header Connection $connection_upgrade;
  23. proxy_set_header Early-Data $ssl_early_data;
  24. proxy_set_header Host $host;
  25. proxy_set_header Proxy "";
  26. proxy_set_header Upgrade $http_upgrade;
  27. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28. proxy_set_header X-Forwarded-Host $host;
  29. proxy_set_header X-Forwarded-Method $request_method;
  30. proxy_set_header X-Forwarded-Port $server_port;
  31. proxy_set_header X-Forwarded-Proto $scheme;
  32. proxy_set_header X-Forwarded-Server $host;
  33. proxy_set_header X-Forwarded-Ssl on;
  34. proxy_set_header X-Forwarded-Uri $request_uri;
  35. proxy_set_header X-Original-Method $request_method;
  36. proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
  37. proxy_set_header X-Real-IP $remote_addr;
  38.  
Add Comment
Please, Sign In to add comment