From a4fadfd6841f5d0fa0cc88b2c2356ca86168f304 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Sat, 25 Oct 2025 22:04:14 -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-25=2022:04:14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../verbocloud.itguys.com.br.conf | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/nginx/sites-available/verbocloud.itguys.com.br.conf b/nginx/sites-available/verbocloud.itguys.com.br.conf index 22d68de..9bd0ad7 100644 --- a/nginx/sites-available/verbocloud.itguys.com.br.conf +++ b/nginx/sites-available/verbocloud.itguys.com.br.conf @@ -183,24 +183,24 @@ server { add_header 'X-Cache-FolderTree' $upstream_cache_status always; } - # Cache de APIs de Sessão (acelera 'Deck', 'Notes', 'Tasks', Notificações) - location ~ ^/(ocs/v[12].php/cloud/users|ocs/v[12].php/privatedata/get|ocs/v2.php/apps/notifications/api/v2/notifications|ocs/v[12].php/cloud/apps|ocs/v[12].php/cloud/user) { - proxy_pass http://nextcloud_aio_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_http_version 1.1; - proxy_set_header Connection ""; - proxy_buffering on; +# # Cache de APIs de Sessão (acelera 'Deck', 'Notes', 'Tasks', Notificações) +# location ~ ^/(ocs/v[12].php/cloud/users|ocs/v[12].php/privatedata/get|ocs/v2.php/apps/notifications/api/v2/notifications|ocs/v[12].php/cloud/apps|ocs/v[12].php/cloud/user) { +# proxy_pass http://nextcloud_aio_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_http_version 1.1; +# proxy_set_header Connection ""; +# proxy_buffering on; - proxy_cache verbocloud_session_cache; # <-- Usa cache exclusivo - proxy_cache_key "$host$request_uri|$cookie_nc_session_id"; - proxy_cache_valid 200 5s; # Cache curto (5 segundos) - proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; - - add_header 'X-Cache-API-Session' $upstream_cache_status always; - } +# proxy_cache verbocloud_session_cache; # <-- Usa cache exclusivo +# proxy_cache_key "$host$request_uri|$cookie_nc_session_id"; +# proxy_cache_valid 200 5s; # Cache curto (5 segundos) +# proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; +# +# add_header 'X-Cache-API-Session' $upstream_cache_status always; +# } # Cache de Estáticos (Opcional, mas bom para performance) location ~ \.(css|js|svg|gif|png|jpg|ico|woff|woff2|tff)$ {