Skip to content

Commit

Permalink
fix: nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsbergPhilip committed Nov 14, 2024
1 parent 919f166 commit ea3fe0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .docker/dockerfiles/frontend
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app/packages/frontend
COPY --chown=1000:1000 packages/frontend .

FROM base AS develop
ENV PORT=8080
ENV PORT=8082
EXPOSE $PORT
CMD ["yarn", "dev"]

Expand Down
18 changes: 9 additions & 9 deletions .docker/resources/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ http {
return 301 https://diamonds.etimo.se$request_uri;
}

}

server {
listen 443 ssl;
server_name diamonds.etimo.se;

location /static/ {
expires max;
add_header Cache-Control "public, max-age=31536000, immutable";
}

location /api/ {
proxy_pass http://backend:5000/api/;
proxy_pass http://backend:3000/api/;
}

location /docs/ {
proxy_pass http://backend:5000/docs/;
proxy_pass http://backend:3000/docs/;
}

location /metrics {
proxy_pass http://backend:5000/metrics;
proxy_pass http://backend:3000/metrics;
}

}

server {
listen 443 ssl;
server_name diamonds.etimo.se;

ssl_certificate /etc/letsencrypt/live/diamonds.etimo.se/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/diamonds.etimo.se/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
Expand Down

0 comments on commit ea3fe0b

Please sign in to comment.