From 27301184d98bc22591203161fc4567105a0ddda1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 10:35:40 +0000 Subject: [PATCH] chore: remove port 80 mappings and listen block from nginx As required by the subject, the sole infrastructure entrypoint must be port 443 with TLS 1.2 or 1.3. Port 80 and redirects from HTTP to HTTPS are strictly prohibited. Co-authored-by: Basil-Ismail <107148738+Basil-Ismail@users.noreply.github.com> --- src/docker-compose.yaml | 1 - src/nginx/nginx.conf | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/docker-compose.yaml b/src/docker-compose.yaml index b67eaf1..a91d375 100644 --- a/src/docker-compose.yaml +++ b/src/docker-compose.yaml @@ -4,7 +4,6 @@ services: context: ./nginx/ container_name: nginx ports: - - "80:80" - "443:443" restart: unless-stopped depends_on: diff --git a/src/nginx/nginx.conf b/src/nginx/nginx.conf index 4782580..822d34d 100644 --- a/src/nginx/nginx.conf +++ b/src/nginx/nginx.conf @@ -7,13 +7,6 @@ events { http { include /etc/nginx/mime.types; default_type application/octet-stream; - # A redirect to HTTPS - server { - listen 80; - server_name bismail.42.fr; - return 301 https://$host$request_uri; - } - #This is the default server configuration server { listen 443 ssl default_server;