Skip to content

Commit

Permalink
CDE-40 chore: Add nginx reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Feb 23, 2024
1 parent 85b080a commit 444913e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM ${PARENT}
ENV PORT=80

# Copy the custom NGINX configuration file
COPY default.conf /etc/nginx/conf.d/default.conf
COPY default.conf /etc/nginx/sites-available/default

COPY --from=build /app/demo/* /var/www/html
EXPOSE ${PORT}
4 changes: 3 additions & 1 deletion default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ server {
}

location /api/ {
proxy_pass https://scicrunch.org$request_uri;
proxy_pass https://scicrunch.org;
proxy_set_header Host scicrunch.org;
proxy_pass_request_headers on;
}
}

0 comments on commit 444913e

Please sign in to comment.