[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,41 +75,42 @@ server {
location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; } 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 # J.1. Bloqueio da telemetria que causa erros no editor
location = /we/RemoteTelemetry.ashx { location = /we/RemoteTelemetry.ashx {
return 204; return 204;
} }
# J.2. Rota de descoberta do serviço Office (discovery) com correção do XML # J.2. Rota de descoberta do serviço Office (discovery) com correção do XML
location ^~ /hosting/discovery { location ^~ /hosting/discovery {
proxy_pass http://office_backend/hosting/discovery; proxy_pass http://office_backend/hosting/discovery;
proxy_set_header Host $host; proxy_set_header Host $host;
# Corrige as URLs incorretas geradas pelo Office Online no XML # Corrige as URLs incorretas geradas pelo Office Online no XML
sub_filter_once off; sub_filter_once off;
sub_filter_types text/xml; sub_filter_types text/xml;
sub_filter 'https://srvoffice001.itguys.com.br/' 'https://cloud.grupopralog.com.br/'; sub_filter 'https://srvoffice001.itguys.com.br/' 'https://cloud.grupopralog.com.br/';
sub_filter 'https://srvoffice001/' 'https://cloud.grupopralog.com.br/'; sub_filter 'https://srvoffice001/' 'https://cloud.grupopralog.com.br/';
sub_filter 'https://172.16.253.101/' 'https://cloud.grupopralog.com.br/'; 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.itguys.com.br/' 'https://cloud.grupopralog.com.br/';
sub_filter 'http://srvoffice001/' 'https://cloud.grupopralog.com.br/'; sub_filter 'http://srvoffice001/' 'https://cloud.grupopralog.com.br/';
} }
# J.3. Rota WOPI para manipulação de arquivos # J.3. Rota WOPI para manipulação de arquivos
location ^~ /hosting/wopi/ { location ^~ /hosting/wopi {
proxy_pass http://office_backend; proxy_pass http://office_backend;
proxy_set_header Host $host; proxy_set_header Host $host;
} }
# J.4. Rota unificada para editores, recursos e websockets # J.4. Rota para Word, Excel, PowerPoint e outros recursos
location ~ ^/(?!ocs)(op|we|wv|p|x|lo|m|o)/ { # Captura qualquer URL que comece com os prefixos específicos do Office.
proxy_pass http://office_backend; location ~ ^/(we|wv|x|p|o|op|m|lo)/ {
proxy_set_header Host $host; proxy_pass http://office_backend;
include /etc/nginx/snippets/websocket_params.conf; proxy_set_header Host $host;
} include /etc/nginx/snippets/websocket_params.conf;
}
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# H.2. Rota Principal da Aplicação Nextcloud # H.2. Rota Principal da Aplicação Nextcloud