[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-21 06:33:38
This commit is contained in:
parent
f1ce00f130
commit
c01c5d2eb0
|
|
@ -80,14 +80,14 @@ server {
|
|||
proxy_ssl_verify off;
|
||||
|
||||
# --- REGRAS DE ROTEAMENTO (LOCATIONS) ---
|
||||
|
||||
|
||||
# 1. Rota para assets estáticos (CACHE AGRESSIVO)
|
||||
location ~* ^/(static|v2|js|css|fonts|images)/ {
|
||||
proxy_cache unifi_cache;
|
||||
proxy_cache_valid 200 7d;
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||
add_header X-Proxy-Cache $upstream_cache_status;
|
||||
|
||||
|
||||
proxy_pass https://unifi_backend_web;
|
||||
}
|
||||
|
||||
|
|
@ -96,14 +96,18 @@ server {
|
|||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
|
||||
# Adicione estas duas linhas para resolver o erro 400
|
||||
proxy_set_header Authorization "";
|
||||
proxy_set_header Host $host;
|
||||
|
||||
proxy_pass https://unifi_backend_web;
|
||||
}
|
||||
|
||||
# --- Páginas de Erro Personalizadas ---
|
||||
include /etc/nginx/snippets/custom_errors.conf;
|
||||
}
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# BLOCO 3: Servidor para o "Inform" dos Dispositivos (HTTP na porta 8080)
|
||||
# ==============================================================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue