[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-22 14:15:38

This commit is contained in:
srvproxy001.itguys.com.br 2025-09-22 14:15:38 -03:00
parent e51b3e3f89
commit 9ab8744a12
1 changed files with 31 additions and 30 deletions

View File

@ -75,16 +75,16 @@ server {
location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; }
# --------------------------------------------------------------------------
# J. ROTAS DO OFFICE ONLINE (VERSÃO CORRIGIDA E FINAL)
# --------------------------------------------------------------------------
# J. ROTAS DO OFFICE ONLINE (VERSÃO DEFINITIVA E EXPLÍCITA)
# --------------------------------------------------------------------------
# J.1. Bloqueio da telemetria que causa erros no editor
location = /we/RemoteTelemetry.ashx {
# J.1. Bloqueio da telemetria que causa erros no editor
location = /we/RemoteTelemetry.ashx {
return 204;
}
}
# J.2. Rota de descoberta do serviço Office (discovery) com correção do XML
location ^~ /hosting/discovery {
# J.2. Rota de descoberta do serviço Office (discovery) com correção do XML
location ^~ /hosting/discovery {
proxy_pass http://office_backend/hosting/discovery;
proxy_set_header Host $host;
@ -96,20 +96,21 @@ server {
sub_filter 'https://172.16.253.101/' 'https://cloud.grupopralog.com.br/';
sub_filter 'http://srvoffice001.itguys.com.br/' 'https://cloud.grupopralog.com.br/';
sub_filter 'http://srvoffice001/' 'https://cloud.grupopralog.com.br/';
}
}
# J.3. Rota WOPI para manipulação de arquivos
location ^~ /hosting/wopi/ {
# J.3. Rota WOPI para manipulação de arquivos
location ^~ /hosting/wopi {
proxy_pass http://office_backend;
proxy_set_header Host $host;
}
}
# J.4. Rota unificada para editores, recursos e websockets
location ~ ^/(?!ocs)(op|we|wv|p|x|lo|m|o)/ {
# J.4. Rota para Word, Excel, PowerPoint e outros recursos
# Captura qualquer URL que comece com os prefixos específicos do Office.
location ~ ^/(we|wv|x|p|o|op|m|lo)/ {
proxy_pass http://office_backend;
proxy_set_header Host $host;
include /etc/nginx/snippets/websocket_params.conf;
}
}
# --------------------------------------------------------------------------
# H.2. Rota Principal da Aplicação Nextcloud