修改Dockerfile,添加nginx.conf

This commit is contained in:
Hsy
2025-02-15 15:10:03 +08:00
parent 41b515f2b8
commit d5f8e5affd
2 changed files with 43 additions and 6 deletions

15
nginx.conf Normal file
View File

@@ -0,0 +1,15 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}