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

Commit fbff397

Browse files
authored
Merge pull request #565 from JAORMX/sites-enabled
Remove "include /etc/nginx/sites-enabled/*;" from default nginx config
2 parents 3b379bb + 278d465 commit fbff397

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ RUN chown -R codegate /var/lib/nginx && \
8080

8181
COPY nginx.conf /etc/nginx/conf.d/default.conf
8282

83+
# Remove include /etc/nginx/sites-enabled/*; from the default nginx.conf
84+
# This way we don't introduce unnecessary configurations nor serve
85+
# any default content.
86+
RUN sed -i '/sites-enabled/d' /etc/nginx/nginx.conf
87+
8388
# Switch to codegate user
8489
USER codegate
8590
WORKDIR /app

0 commit comments

Comments
 (0)