diff --git a/set_new_nginx_app.sh b/set_new_nginx_app.sh index c52cc2d..50b8cca 100644 --- a/set_new_nginx_app.sh +++ b/set_new_nginx_app.sh @@ -139,6 +139,17 @@ server { proxy_set_header Connection 'upgrade'; proxy_set_header Host \$host; proxy_cache_bypass \$http_upgrade; + proxy_redirect off; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP \$remote_addr; + + # Pour les requĂȘtes de streaming + proxy_buffering off; + proxy_cache off; + proxy_request_buffering off; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; } } EOF