[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-21 06:25:50
This commit is contained in:
parent
57feab6379
commit
f1ce00f130
|
|
@ -31,6 +31,11 @@ upstream unifi_backend_inform {
|
||||||
# BLOCO 1: Redirecionamento de HTTP (porta 80) para HTTPS
|
# BLOCO 1: Redirecionamento de HTTP (porta 80) para HTTPS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
server {
|
server {
|
||||||
|
if ($host = unifi.itguys.com.br) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name unifi.itguys.com.br;
|
server_name unifi.itguys.com.br;
|
||||||
|
|
@ -44,6 +49,8 @@ server {
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
@ -55,8 +62,8 @@ server {
|
||||||
server_name unifi.itguys.com.br;
|
server_name unifi.itguys.com.br;
|
||||||
|
|
||||||
# --- CONFIGURAÇÕES DE SSL E SEGURANÇA ---
|
# --- CONFIGURAÇÕES DE SSL E SEGURANÇA ---
|
||||||
#ssl_certificate /etc/letsencrypt/live/unifi.itguys.com.br/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/unifi.itguys.com.br/fullchain.pem; # managed by Certbot
|
||||||
#ssl_certificate_key /etc/letsencrypt/live/unifi.itguys.com.br/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/unifi.itguys.com.br/privkey.pem; # managed by Certbot
|
||||||
include /etc/nginx/snippets/ssl_params.conf;
|
include /etc/nginx/snippets/ssl_params.conf;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue