Skip to content

Commit

Permalink
FIX build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaFM committed Nov 21, 2024
1 parent d55a58d commit c758968
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ RUN npm run build
RUN npm run generate

#stage 2
FROM nginx:alpine
COPY --from=build /app/.output/public /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
#FROM nginx:alpine
#COPY --from=build /app/.output/public /usr/share/nginx/html
#COPY nginx.conf /etc/nginx/conf.d/default.conf
#EXPOSE 80

EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]
CMD ["node", "run", "start"]
8 changes: 8 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ server {
location /_nuxt/ {
try_files $uri $uri/ =404;
}

location /api/ {
proxy_pass https://test2.openebench.bsc.es:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"start": "nuxt start" ,
"test": "vitest",
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
Expand Down

0 comments on commit c758968

Please sign in to comment.