Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Remove "include /etc/nginx/sites-enabled/*;" from default nginx config #565

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading