From 278d4659a8fb4768b12abd93c2e3c7b391148e9c Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Mon, 13 Jan 2025 12:23:01 +0200 Subject: [PATCH] Remove "include /etc/nginx/sites-enabled/*;" from default nginx config This way we don't serve any default content from the nginx we're spanwing. Signed-off-by: Juan Antonio Osorio --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7f1eafee..8983fc08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,6 +80,11 @@ RUN chown -R codegate /var/lib/nginx && \ COPY nginx.conf /etc/nginx/conf.d/default.conf +# Remove include /etc/nginx/sites-enabled/*; from the default nginx.conf +# This way we don't introduce unnecessary configurations nor serve +# any default content. +RUN sed -i '/sites-enabled/d' /etc/nginx/nginx.conf + # Switch to codegate user USER codegate WORKDIR /app