From 298b5c645d8da67fb756fef788c8101e49389660 Mon Sep 17 00:00:00 2001 From: Sirttas Date: Wed, 26 Jul 2023 14:41:16 +0200 Subject: [PATCH] nginx conf --- Dockerfile | 2 +- nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa1c59f..fb2c1f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ RUN npm run build FROM nginx COPY --from=build /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/nginx.conf +COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/nginx.conf b/nginx.conf index c269a61..ea63e75 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,4 +1,4 @@ -location / { +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-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;