Skip to content

Commit

Permalink
Build was choking on the intermediate cert
Browse files Browse the repository at this point in the history
  • Loading branch information
collinlucke committed Nov 20, 2024
1 parent e37d817 commit 96493cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ COPY package.json pnpm-lock.yaml tsconfig.json ./
COPY src ./src
COPY _.collinlucke.com_private_key.key .
COPY collinlucke.com_ssl_certificate.cer .
COPY _.collinlucke.com_ssl_certificate_INTERMEDIATE.cer .

RUN echo "ATLAS_DB_PASSWORD=${ATLAS_DB_PASSWORD}" >> .env
RUN echo "ATLAS_DB_USERNAME=${ATLAS_DB_USERNAME}" >> .env
Expand Down
4 changes: 1 addition & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ httpServer.listen(5050, () => {
// Serve HTTPS on port 443
const httpsOptions = {
key: fs.readFileSync(path.join(__dirname, '../_.collinlucke.com_private_key.key')),
cert: fs.readFileSync(path.join(__dirname, '../collinlucke.com_ssl_certificate.cer')),
ca: [fs.readFileSync(path.join(__dirname, '../_.collinlucke.com_ssl_certificate_INTERMEDIATE.cer'))],

cert: fs.readFileSync(path.join(__dirname, '../collinlucke.com_ssl_certificate.cer'))
};

const httpsServer = https.createServer(httpsOptions, app);
Expand Down

0 comments on commit 96493cb

Please sign in to comment.