Skip to content

Prod ssr https quasar 2.6.6 #13287

Apr 28, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I used the production-export.js file and the ssrProductionExport function to load and set the certificate in this way and it works, I honestly don't know if this is correct?

import { ssrProductionExport } from 'quasar/wrappers'
import https from 'https'
import * as fs from 'fs'
const privateKey = fs.readFileSync('../../key.pem', 'utf8')
const certificate = fs.readFileSync('../../cert.pem', 'utf8')

export default ssrProductionExport(({ app, port, isReady }) => {
  return isReady().then(() => {
    const credentials = { key: privateKey, cert: certificate }
    const server = https.createServer(credentials, app)
    server.listen(port, () => {
      console.log('Server listening at port ' +…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mirkofisic
Comment options

Answer selected by yusufkandemir
@mirkofisic
Comment options

@GregorioLopezO
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants