[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-10-08 22:56:49
This commit is contained in:
parent
44e584636e
commit
78adb7858d
|
|
@ -23,6 +23,16 @@ map $http_user_agent $block_bad_bots {
|
|||
|
||||
# --- Servidor HTTP (Porta 80) -> Redirecionamento para HTTPS ---
|
||||
server {
|
||||
if ($host = www.pralog.com.br) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
if ($host = pralog.com.br) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name pralog.com.br www.pralog.com.br;
|
||||
|
|
@ -31,6 +41,10 @@ server {
|
|||
error_log /var/log/nginx/pralog.com.br.redirects.error.log;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
# --- Servidor HTTPS (Porta 443) - Configuração Principal ---
|
||||
|
|
@ -152,4 +166,8 @@ server {
|
|||
proxy_read_timeout 90s;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/pralog.com.br/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/pralog.com.br/privkey.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue