From 53f0bf113b3eb4eac485fb6adf9f45eb25a0b0e9 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Tue, 25 Nov 2025 09:29:50 -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-11-25=2009:29:50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 2 -- .../sites-available/monitoramento.itguys.com.br.conf | 12 ++---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e8f28a8..99be1af 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -33,8 +33,6 @@ events { } http { -server_names_hash_bucket_size 128; -include /etc/letsencrypt/le_http_01_cert_challenge.conf; # --- Configurações Globais Mínimas --- sendfile on; tcp_nopush on; diff --git a/nginx/sites-available/monitoramento.itguys.com.br.conf b/nginx/sites-available/monitoramento.itguys.com.br.conf index 0ee6f96..18db9e7 100644 --- a/nginx/sites-available/monitoramento.itguys.com.br.conf +++ b/nginx/sites-available/monitoramento.itguys.com.br.conf @@ -21,9 +21,7 @@ upstream grafana_backend { # ------------------------------------------------------------------------------ # BLOCO 1: Redirecionamento de HTTP (porta 80) para HTTPS # ------------------------------------------------------------------------------ -server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot - - +server { listen 80; listen [::]:80; server_name monitoramento.itguys.com.br; @@ -40,16 +38,12 @@ server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot location / { return 301 https://$host$request_uri; } -location = /.well-known/acme-challenge/FR61bjjHwMcStT_G_cb4E_kiwX5zV8xlPWE9xkXPMh0{default_type text/plain;return 200 FR61bjjHwMcStT_G_cb4E_kiwX5zV8xlPWE9xkXPMh0.6NQOP-_cyjMVLz8P4PfH0klS5ZH2qgREfeMrgpUfnEk;} # managed by Certbot - } # ------------------------------------------------------------------------------ # BLOCO 2: Servidor Principal - Proxy Reverso para Grafana (HTTPS) # ------------------------------------------------------------------------------ -server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot - - +server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name monitoramento.itguys.com.br; @@ -171,6 +165,4 @@ server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot proxy_read_timeout 90s; proxy_send_timeout 90s; } -location = /.well-known/acme-challenge/FR61bjjHwMcStT_G_cb4E_kiwX5zV8xlPWE9xkXPMh0{default_type text/plain;return 200 FR61bjjHwMcStT_G_cb4E_kiwX5zV8xlPWE9xkXPMh0.6NQOP-_cyjMVLz8P4PfH0klS5ZH2qgREfeMrgpUfnEk;} # managed by Certbot - }