Files
Xor290 d8794358c5
ci-api / test (push) Successful in 27m41s
ci-web / test (push) Successful in 14m6s
feat: add app download
2026-08-09 15:35:29 +02:00

19 lines
713 B
Docker

# WAF (Nginx + ModSecurity/OWASP CRS) — même pattern que
# projet_gestion_commande/docker-prod/backend/Dockerfile (stage "waf") :
# seul point de terminaison TLS + reverse-proxy devant web/api.
FROM owasp/modsecurity-crs:nginx-alpine
USER root
RUN mkdir -p /var/log/modsec /etc/nginx/certs && \
chown -R nginx:nginx /var/log/modsec /etc/nginx/certs /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/app.conf
COPY custom-rules.conf /etc/nginx/modsec/custom-rules.conf
RUN echo "Include /etc/nginx/modsec/custom-rules.conf" > /etc/nginx/modsec/custom-includes.conf && \
rm -f /etc/nginx/templates/conf.d/default.conf.template || true
USER nginx
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]