From 4a4a4a820800e49f9ebc51211067c59268e3d27f Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Thu, 23 Oct 2025 10:22:49 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-10-23=2010:22:49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloud.grupopralog.com.br.conf | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nginx/sites-available/cloud.grupopralog.com.br.conf b/nginx/sites-available/cloud.grupopralog.com.br.conf index 81f748a..958274a 100644 --- a/nginx/sites-available/cloud.grupopralog.com.br.conf +++ b/nginx/sites-available/cloud.grupopralog.com.br.conf @@ -213,6 +213,28 @@ server { more_set_headers 'X-APIMicroCache-Status: $upstream_cache_status'; } + location ~ ^/remote\.php/(webdav|dav)/ { + proxy_pass http://nextcloud_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + + proxy_http_version 1.1; + proxy_set_header Connection ""; + + # Habilita o streaming de arquivos grandes para o backend + # sem bufferizar o corpo inteiro da requisição no Nginx. + proxy_buffering off; + proxy_request_buffering off; + + # Timeouts longos para uploads/downloads grandes + proxy_connect_timeout 60s; + proxy_read_timeout 1200s; + proxy_send_timeout 1200s; + } + location / { proxy_pass http://nextcloud_backend; proxy_set_header Host $host;