nginx sur le port 80 : routage par defaut des reverse proxies (Coolify/Traefik)

This commit is contained in:
Aurealibe
2026-07-10 04:11:12 +01:00
parent 25cc54c2e6
commit dc7f1b3a7c
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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` # 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/docker/csp.conf /etc/nginx/snippets/csp.conf
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080 EXPOSE 80
+1 -1
View File
@@ -17,7 +17,7 @@ services:
preview: preview:
build: . build: .
ports: ports:
- '8080:8080' - '8080:80'
volumes: volumes:
node_modules: node_modules:
+5 -5
View File
@@ -1,11 +1,11 @@
# Production compose (what Coolify deploys): one service, the static site # Production compose (what Coolify deploys): one service, the static site
# built by the multi-stage Dockerfile and served by hardened nginx on 8080. # built by the multi-stage Dockerfile and served by hardened nginx on 80
# No host `ports:` mapping: the platform's reverse proxy (Traefik on # (the port reverse proxies expect by default). No host `ports:` mapping:
# Coolify) routes straight to the exposed container port. For local # the platform's proxy (Traefik on Coolify) routes straight to the exposed
# development use docker-compose.dev.yml instead. # container port. For local development use docker-compose.dev.yml instead.
services: services:
web: web:
build: . build: .
restart: unless-stopped restart: unless-stopped
expose: expose:
- '8080' - '80'
+2 -2
View File
@@ -1,6 +1,6 @@
server { server {
listen 8080; listen 80;
listen [::]:8080; listen [::]:80;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;