From 982f2d936fe10c565581466ac52aa2cd75314f46 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Tue, 16 Sep 2025 10:15:49 -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-09-16=2010:15:49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/.certbot.lock | 0 nginx/nginx.conf | 2 ++ nginx/sites-available/zammad.itguys.com.br.conf | 12 ++++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 nginx/.certbot.lock diff --git a/nginx/.certbot.lock b/nginx/.certbot.lock new file mode 100644 index 0000000..e69de29 diff --git a/nginx/nginx.conf b/nginx/nginx.conf index d27e2d5..1ab574b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -11,6 +11,8 @@ events { } http { +server_names_hash_bucket_size 128; +include /etc/letsencrypt/le_http_01_cert_challenge.conf; #Configuraçoes de Cache proxy_cache_path /var/cache/nginx/zabbix_cache levels=1:2 keys_zone=zabbix_cache:10m max_size=1g inactive=60m use_temp_path=off; proxy_cache_path /var/cache/nginx/api_cache levels=1:2 keys_zone=api_cache:10m max_size=100m inactive=5m use_temp_path=off; diff --git a/nginx/sites-available/zammad.itguys.com.br.conf b/nginx/sites-available/zammad.itguys.com.br.conf index cdfc731..80e957f 100644 --- a/nginx/sites-available/zammad.itguys.com.br.conf +++ b/nginx/sites-available/zammad.itguys.com.br.conf @@ -6,18 +6,24 @@ # ============================================================================== # BLOCO HTTP: Redirecionar para HTTPS # ============================================================================== -server { +server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot + + listen 80; listen [::]:80; server_name zammad.itguys.com.br; location /.well-known/acme-challenge/ { root /var/www/html; } location / { return 301 https://$host$request_uri; } +location = /.well-known/acme-challenge/7f15JU16mzsLW0KO4HOiKafrgolDwRvUhq3eUUHx2Ic{default_type text/plain;return 200 7f15JU16mzsLW0KO4HOiKafrgolDwRvUhq3eUUHx2Ic.k0xoa7ZfB3Jb5woCPbxO02UTpvLWmKxfos4fkjuNkWU;} # managed by Certbot + } # ============================================================================== # BLOCO HTTPS: O Coração da nossa Configuração # ============================================================================== -server { +server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot + + listen 443 ssl http2; listen [::]:443 ssl http2; server_name zammad.itguys.com.br; @@ -82,4 +88,6 @@ server { # O cache permanece desativado aqui por herdar da regra geral. proxy_pass http://172.16.254.59; } +location = /.well-known/acme-challenge/7f15JU16mzsLW0KO4HOiKafrgolDwRvUhq3eUUHx2Ic{default_type text/plain;return 200 7f15JU16mzsLW0KO4HOiKafrgolDwRvUhq3eUUHx2Ic.k0xoa7ZfB3Jb5woCPbxO02UTpvLWmKxfos4fkjuNkWU;} # managed by Certbot + }