diff --git a/.gitignore b/.gitignore index 8dd351c6..a511bb85 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ yarn.lock # IntelliJ IDEA products .idea .eslintcache + +# ssl keys +*.pem diff --git a/Makefile b/Makefile index 04944847..e663d6c5 100644 --- a/Makefile +++ b/Makefile @@ -201,3 +201,7 @@ test: npm test .PHONY: test + +generate-ssl-keys: + openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 + \ No newline at end of file diff --git a/package.json b/package.json index 6804ff7f..106c62f6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "start": "react-scripts start", - "start-https": "export HTTPS=true&&SSL_CRT_FILE=cert.pem&&SSL_KEY_FILE=key.pem react-scripts start", + "start-https": "export PORT=443 HTTPS=true&&SSL_CRT_FILE=cert.pem&&SSL_KEY_FILE=key.pem react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build && gzipper --verbose ./build", "test": "react-scripts test --testMatch '**/__tests__/*' --passWithNoTests --watchAll=false", "test:watch": "react-scripts test --testMatch '**/__tests__/*'", diff --git a/src/features/MatchPage/components/FinishedMatch/helpers.tsx b/src/features/MatchPage/components/FinishedMatch/helpers.tsx index 46c5663d..f99f3fb0 100644 --- a/src/features/MatchPage/components/FinishedMatch/helpers.tsx +++ b/src/features/MatchPage/components/FinishedMatch/helpers.tsx @@ -105,6 +105,7 @@ const getPlaylistChapters = (videos: Array