fix
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Use Node.js 22 Alpine as the base image
|
# Use Node.js 22 Alpine as the base image
|
||||||
FROM node:22-alpine
|
FROM node:lts-alpine3.21
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
+5
-5
@@ -651,12 +651,12 @@ async function startServer() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// --- Server Start ---
|
// --- Server Start ---
|
||||||
const httpsOptions = {
|
// const httpsOptions = {
|
||||||
key: fs.readFileSync(process.env.SSL_KEY_PATH),
|
// key: fs.readFileSync(process.env.SSL_KEY_PATH),
|
||||||
cert: fs.readFileSync(process.env.SSL_CERT_PATH),
|
// cert: fs.readFileSync(process.env.SSL_CERT_PATH),
|
||||||
}
|
// }
|
||||||
|
|
||||||
https.createServer(httpsOptions, app).listen(port, () => {
|
app.listen(port, () => {
|
||||||
console.log(`Server is running on https://localhost:${port}`)
|
console.log(`Server is running on https://localhost:${port}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-4
@@ -15,9 +15,10 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
https: {
|
host: '0.0.0.0',
|
||||||
key: fs.readFileSync('./backend/key.pem'),
|
// https: {
|
||||||
cert: fs.readFileSync('./backend/cert.pem'),
|
// key: fs.readFileSync('./backend/key.pem'),
|
||||||
},
|
// cert: fs.readFileSync('./backend/cert.pem'),
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user