[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-11-24 09:21:48

This commit is contained in:
srvproxy001.itguys.com.br 2025-11-24 09:21:48 -03:00
parent e16a0cbd7f
commit 256cbbee31
3 changed files with 12 additions and 2 deletions

0
nginx/.certbot.lock Normal file
View File

View File

@ -33,6 +33,8 @@ 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;

View File

@ -18,7 +18,9 @@ upstream zabbix_backend {
# ==============================================================================
# BLOCO 1: Redirecionamento de HTTP (porta 80) para HTTPS
# ==============================================================================
server {
server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot
listen 80;
listen [::]:80;
server_name mimir.itguys.com.br;
@ -30,12 +32,16 @@ server {
location / {
return 301 https://$host$request_uri;
}
location = /.well-known/acme-challenge/_0RFD1JjsZNjicyChvo74hJGwnVlxZU_G-pvLMhpcNI{default_type text/plain;return 200 _0RFD1JjsZNjicyChvo74hJGwnVlxZU_G-pvLMhpcNI.6NQOP-_cyjMVLz8P4PfH0klS5ZH2qgREfeMrgpUfnEk;} # managed by Certbot
}
# ==============================================================================
# BLOCO 2: Servidor Principal - Proxy Reverso para Zabbix (HTTPS)
# ==============================================================================
server {
server {rewrite ^(/.well-known/acme-challenge/.*) $1 break; # managed by Certbot
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name mimir.itguys.com.br;
@ -122,4 +128,6 @@ server {
location / {
proxy_pass http://zabbix_backend;
}
location = /.well-known/acme-challenge/_0RFD1JjsZNjicyChvo74hJGwnVlxZU_G-pvLMhpcNI{default_type text/plain;return 200 _0RFD1JjsZNjicyChvo74hJGwnVlxZU_G-pvLMhpcNI.6NQOP-_cyjMVLz8P4PfH0klS5ZH2qgREfeMrgpUfnEk;} # managed by Certbot
}