From dc7f1b3a7caff65e8225facc4e77cf4867f23e42 Mon Sep 17 00:00:00 2001 From: Aurealibe <220354117+Aurealibe@users.noreply.github.com> Date: Fri, 10 Jul 2026 04:11:12 +0100 Subject: [PATCH] nginx sur le port 80 : routage par defaut des reverse proxies (Coolify/Traefik) --- Dockerfile | 2 +- docker-compose.dev.yml | 2 +- docker-compose.yml | 10 +++++----- docker/nginx.conf | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c31701f..b8b86fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ COPY docker/security-headers.conf /etc/nginx/snippets/security-headers.conf # csp.conf is generated by scripts/gen-csp.mjs during `pnpm build` COPY --from=build /app/docker/csp.conf /etc/nginx/snippets/csp.conf COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 8080 +EXPOSE 80 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index d66b96e..8dd43e6 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -17,7 +17,7 @@ services: preview: build: . ports: - - '8080:8080' + - '8080:80' volumes: node_modules: diff --git a/docker-compose.yml b/docker-compose.yml index 8c4d9a4..b37f352 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,11 @@ # Production compose (what Coolify deploys): one service, the static site -# built by the multi-stage Dockerfile and served by hardened nginx on 8080. -# No host `ports:` mapping: the platform's reverse proxy (Traefik on -# Coolify) routes straight to the exposed container port. For local -# development use docker-compose.dev.yml instead. +# built by the multi-stage Dockerfile and served by hardened nginx on 80 +# (the port reverse proxies expect by default). No host `ports:` mapping: +# the platform's proxy (Traefik on Coolify) routes straight to the exposed +# container port. For local development use docker-compose.dev.yml instead. services: web: build: . restart: unless-stopped expose: - - '8080' + - '80' diff --git a/docker/nginx.conf b/docker/nginx.conf index 4c8779c..48afc1b 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -1,6 +1,6 @@ server { - listen 8080; - listen [::]:8080; + listen 80; + listen [::]:80; server_name _; root /usr/share/nginx/html;