[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-19 09:29:26
This commit is contained in:
parent
5ddf6afee9
commit
a363bb3444
|
|
@ -7,6 +7,11 @@
|
||||||
# BLOCO HTTP: Redirecionar para HTTPS
|
# BLOCO HTTP: Redirecionar para HTTPS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
server {
|
server {
|
||||||
|
if ($host = business.itguys.com.br) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name business.itguys.com.br;
|
server_name business.itguys.com.br;
|
||||||
|
|
@ -20,6 +25,8 @@ server {
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
@ -32,9 +39,9 @@ server {
|
||||||
|
|
||||||
# --- Certificados e Segurança SSL ---
|
# --- Certificados e Segurança SSL ---
|
||||||
# O Certbot irá gerir estas linhas. Lembre-se de o executar para este domínio.
|
# O Certbot irá gerir estas linhas. Lembre-se de o executar para este domínio.
|
||||||
ssl_certificate /etc/letsencrypt/live/business.itguys.com.br/fullchain.pem;
|
#ssl_certificate /etc/letsencrypt/live/business.itguys.com.br/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/business.itguys.com.br/privkey.pem;
|
#ssl_certificate_key /etc/letsencrypt/live/business.itguys.com.br/privkey.pem;
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/business.itguys.com.br/fullchain.pem;
|
#ssl_trusted_certificate /etc/letsencrypt/live/business.itguys.com.br/fullchain.pem;
|
||||||
# Inclui o nosso "kit" de segurança SSL com cifras modernas e cabeçalhos de segurança.
|
# Inclui o nosso "kit" de segurança SSL com cifras modernas e cabeçalhos de segurança.
|
||||||
include /etc/nginx/snippets/ssl_params.conf;
|
include /etc/nginx/snippets/ssl_params.conf;
|
||||||
|
|
||||||
|
|
@ -79,4 +86,7 @@ server {
|
||||||
|
|
||||||
proxy_pass http://172.16.121.13;
|
proxy_pass http://172.16.121.13;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/business.itguys.com.br/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/business.itguys.com.br/privkey.pem; # managed by Certbot
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue