From 16c827cb18a96384bdf9eedc0870be2ccbbf229e Mon Sep 17 00:00:00 2001 From: Sirttas Date: Wed, 26 Jul 2023 14:19:07 +0200 Subject: [PATCH] fix nginx --- Dockerfile | 3 ++- nginx.conf | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3429b78..aa1c59f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,5 @@ COPY . ./ RUN npm run build FROM nginx -COPY --from=build /app/dist /usr/share/nginx/html \ No newline at end of file +COPY --from=build /app/dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/nginx.conf diff --git a/nginx.conf b/nginx.conf index c33643e..ea63e75 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,6 @@ server { - add_header Access-Control-Allow-Origin 'https://api.eveal.shendai.rip,https://evepraisal.shendai.rip' always; - add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always; + add_header 'Access-Control-Allow-Origin' 'https://api.eveal.shendai.rip,https://evepraisal.shendai.rip' always; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; } \ No newline at end of file