Fix nginx configuration override

This commit is contained in:
2026-06-06 12:33:04 +05:30
parent d672dd2bd6
commit c054da9d0d
2 changed files with 10 additions and 17 deletions

View File

@@ -10,8 +10,8 @@ RUN rm -rf ./*
# NOTE: If your folder is named "dist" instead of "build", change "build/" to "dist/"
COPY dist/ .
# 3. Copy your custom Nginx configuration (which you already have in your log)
COPY nginx.conf /etc/nginx/nginx.conf
# 3. Copy your custom Nginx configuration to override the default server block
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80

View File

@@ -1,10 +1,4 @@
events {}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
server {
listen 80;
server_name localhost;
@@ -14,5 +8,4 @@ http {
# This line forces Nginx to pass routing back to React Router
try_files $uri $uri/ /index.html;
}
}
}