From be014fc3c8bd3ef8d20e757ef1483b751c657a00 Mon Sep 17 00:00:00 2001 From: Grzegorz Kucmierz Date: Sun, 22 Feb 2026 15:45:08 +0000 Subject: [PATCH] Fix nginx config: remove volume mount, add IPv6 listen, catch-all server_name --- docker-compose.yml | 4 ++-- nginx.conf | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 245a8fb..bdb6055 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,8 @@ services: - "80" restart: unless-stopped # Uncomment the following lines if you want to mount the configuration locally for development/testing - volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + # volumes: + # - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro networks: - npm_public diff --git a/nginx.conf b/nginx.conf index 45be951..f207243 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ server { listen 80; - server_name localhost; + listen [::]:80; + server_name _; root /usr/share/nginx/html; index index.html;