diff --git a/.docker/dockerfiles/frontend b/.docker/dockerfiles/frontend index f2b15a30..d0e10655 100755 --- a/.docker/dockerfiles/frontend +++ b/.docker/dockerfiles/frontend @@ -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"] diff --git a/.docker/resources/nginx.conf b/.docker/resources/nginx.conf index 43865266..05df8370 100644 --- a/.docker/resources/nginx.conf +++ b/.docker/resources/nginx.conf @@ -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;