Skip to content

Commit

Permalink
Merge pull request #37 from THD-AI-2023:hotfix/https-errors
Browse files Browse the repository at this point in the history
Update SSL configuration for serving the client build
  • Loading branch information
HlexNC authored Jun 30, 2024
2 parents 83a51a1 + 0973c52 commit 67dc75e
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 12 deletions.
4 changes: 2 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20
FROM node:22-slim

WORKDIR /usr/src/app

Expand All @@ -17,4 +17,4 @@ COPY .env .env
EXPOSE 3000


CMD ["npx", "serve", "-s", "build"]
CMD ["serve", "-s", "build", "-l", "3000", "--ssl-cert", "/etc/ssl/certs/localhost.pem", "--ssl-key", "/etc/ssl/private/localhost-key.pem"]
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-use-websocket": "^4.8.1"
},
"scripts": {
"start": "HTTPS=true react-scripts start",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
189 changes: 181 additions & 8 deletions client/src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20
FROM node:22-slim

WORKDIR /usr/src/app

Expand Down

0 comments on commit 67dc75e

Please sign in to comment.