fix nginx
This commit is contained in:
@@ -6,4 +6,5 @@ COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/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;
|
||||
}
|
||||
Reference in New Issue
Block a user