diff --git a/nginx/sites-available/cloud.grupopralog.com.br.conf b/nginx/sites-available/cloud.grupopralog.com.br.conf index f74de2e..6633e3e 100644 --- a/nginx/sites-available/cloud.grupopralog.com.br.conf +++ b/nginx/sites-available/cloud.grupopralog.com.br.conf @@ -187,8 +187,36 @@ server { #Fim alteracao } - # Office Online (WOPI) - location ~ ^/(m|x|we|o|p|wv|op|wd|rtc|rtc2|layouts|view|_layouts|app_scripts)/ { + # Office Online (WOPI) + #12/11/2025 + location ~ ^/(rtc|rtc2)/ { + proxy_pass http://officeonline_backend; + + # Headers de Proxy + proxy_set_header Host "srvoffice001.itguys.com.br"; + 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_set_header Accept-Encoding ""; + + # Configuração ESSENCIAL para WebSockets + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # Configuração ESSENCIAL para streaming (Interface estranha) + proxy_buffering off; + proxy_request_buffering off; + + # Timeouts longos + proxy_connect_timeout 1200s; + proxy_send_timeout 1200s; + proxy_read_timeout 1200s; + } + #Fim 12/11/2025 + + location ~ ^/(m|x|we|o|p|wv|op|wd|layouts|view|_layouts|app_scripts)/ { proxy_pass http://officeonline_backend; proxy_set_header Host "srvoffice001.itguys.com.br"; proxy_set_header X-Real-IP $remote_addr; @@ -199,8 +227,6 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Accept-Encoding ""; - proxy_buffering off; - proxy_request_buffering off; proxy_connect_timeout 1200s; proxy_send_timeout 1200s; proxy_read_timeout 1200s;