Fix nginx config: remove volume mount, add IPv6 listen, catch-all server_name
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user