rm default nginx page
All checks were successful
build / build (push) Successful in 11s

This commit is contained in:
Constantin Simonis 2025-01-23 13:30:37 +01:00
parent efa3fa567b
commit 5301b7831c
Signed by: csimonis
GPG Key ID: 3878FF77C24AF4D2
2 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,6 @@
FROM nginx:latest FROM nginx:latest
COPY src /usr/share/nginx/html COPY src /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

14
nginx.conf Normal file
View File

@ -0,0 +1,14 @@
server {
listen 80;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
error_page 404 = @empty404;
location @empty404 {
return 404;
}
}