Fix nginx config: remove volume mount, add IPv6 listen, catch-all server_name

This commit is contained in:
2026-02-22 15:45:08 +00:00
parent 269db48aec
commit be014fc3c8
2 changed files with 4 additions and 3 deletions

View File

@@ -10,8 +10,8 @@ services:
- "80" - "80"
restart: unless-stopped restart: unless-stopped
# Uncomment the following lines if you want to mount the configuration locally for development/testing # Uncomment the following lines if you want to mount the configuration locally for development/testing
volumes: # volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro # - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks: networks:
- npm_public - npm_public

View File

@@ -1,6 +1,7 @@
server { server {
listen 80; listen 80;
server_name localhost; listen [::]:80;
server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;