From 0dd8a47c515d9ce9cc7500aafcb23ce42601c670 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Sun, 16 Jul 2023 11:06:48 +0200 Subject: [PATCH] Aggiornamenti per https --- cicd/nginx/nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cicd/nginx/nginx.conf b/cicd/nginx/nginx.conf index 7bee15a..4920bd5 100644 --- a/cicd/nginx/nginx.conf +++ b/cicd/nginx/nginx.conf @@ -5,6 +5,13 @@ events { worker_connections 1024; } http { client_max_body_size 5M; + server { + + listen 80; + server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it; + return 301 https://$host$request_uri; + } + server { listen 443 ssl; server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it default_server;