diff --git a/nginx-config/https/http-for-letsencrypt.conf b/nginx-config/https/http-for-letsencrypt.conf index a437346..c61f7c7 100644 --- a/nginx-config/https/http-for-letsencrypt.conf +++ b/nginx-config/https/http-for-letsencrypt.conf @@ -2,6 +2,8 @@ server { listen 80 default_server; + server_name _; + server_tokens off; location /.well-known/acme-challenge/ { @@ -9,15 +11,7 @@ server { } location / { - - proxy_pass http://arti-angular-app:4200; - - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Port $server_port; + return 301 https://$host$request_uri; }