Advertisement
adellam

Untitled

Oct 21st, 2022
2,240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.67 KB | None | 0 0
  1. upstream createdir {
  2.         server 127.0.0.1:5000;
  3.     }
  4.  
  5.     # Proxy stuff
  6.     # Proxy stuff
  7. proxy_http_version 1.1;
  8. proxy_set_header Connection "";
  9. proxy_set_header Host $host;
  10. proxy_set_header nginx-request-uri $request_uri;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header X-Forwarded-Proto $scheme;
  13. proxy_buffering on;
  14. proxy_buffer_size 8k;
  15. proxy_buffers 4 8k;
  16. proxy_busy_buffers_size 16k;
  17. proxy_temp_file_write_size 16k;
  18. proxy_redirect off;
  19. proxy_connect_timeout 30s;
  20. proxy_read_timeout 480s;
  21. proxy_send_timeout 120s;
  22.  
  23.  
  24.         location / {
  25.  
  26.  
  27.                         proxy_pass http://createdir;
  28.  
  29.  
  30.  
  31.  
  32.                 }
  33.  
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement