Skip to content

Commit

Permalink
Remove "include /etc/nginx/sites-enabled/*;" from default nginx config
Browse files Browse the repository at this point in the history
This way we don't serve any default content from the nginx we're
spanwing.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
  • Loading branch information
JAORMX committed Jan 13, 2025
1 parent 43158aa commit 278d465
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 278d465

Please sign in to comment.