diff --git a/nginx/sites-available/verbocloud.itguys.com.br.conf b/nginx/sites-available/verbocloud.itguys.com.br.conf index 23e1862..9bc0fb4 100644 --- a/nginx/sites-available/verbocloud.itguys.com.br.conf +++ b/nginx/sites-available/verbocloud.itguys.com.br.conf @@ -161,8 +161,35 @@ server { location = /.well-known/webfinger { return 301 /index.php/.well-known/webfinger; } location = /.well-known/nodeinfo { return 301 /index.php/.well-known/nodeinfo; } - # --- CORREÇÃO: Nextcloud Talk (HPB) e Notify Push --- - # O caminho correto é /push, e não /nextcloud/push + # --- NOVO: Bloco de Correção para URL do Talk --- + # Captura a URL errada "/standalone-signaling/" que está na UI + # e a reescreve internamente para "/push/", que é a correta do AIO. + location /standalone-signaling/ { + # Reescreve a URL e passa para o backend AIO na rota correta + # A barra no final de /push/ é crucial + proxy_pass http://nextcloud_aio_backend/push/; + + # Configurações para WebSockets + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + 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; + + # Otimizações para conexões longas + proxy_buffering off; + proxy_request_buffering off; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + + # Não fazer cache + proxy_cache off; + } + + # --- Bloco do Nextcloud Talk (HPB) e Notify Push --- + # Captura a URL correta (/push) que o app Notify Push (sino) usa. location /push { proxy_pass http://nextcloud_aio_backend; # Aponta para o AIO @@ -178,10 +205,10 @@ server { # Otimizações para conexões longas proxy_buffering off; proxy_request_buffering off; - proxy_read_timeout 3600s; # 1 hora (padrão do AIO) + proxy_read_timeout 3600s; proxy_send_timeout 3600s; - # Não fazer cache desta conexão + # Não fazer cache proxy_cache off; }