[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-16 09:33:37

This commit is contained in:
srvproxy001.itguys.com.br 2025-09-16 09:33:37 -03:00
parent ee7c48c689
commit 920b12a51b
2 changed files with 10 additions and 0 deletions

View File

View File

@ -7,6 +7,11 @@
# BLOCO HTTP: Redirecionar todo o tráfego inseguro para HTTPS # BLOCO HTTP: Redirecionar todo o tráfego inseguro para HTTPS
# ============================================================================== # ==============================================================================
server { server {
if ($host = git.itguys.com.br) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name git.itguys.com.br; server_name git.itguys.com.br;
@ -19,6 +24,8 @@ server {
location / { location / {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
} }
# ============================================================================== # ==============================================================================
@ -99,4 +106,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
ssl_certificate /etc/letsencrypt/live/git.itguys.com.br/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/git.itguys.com.br/privkey.pem; # managed by Certbot
} }