adonis 4.1 ssl not working #3373
Unanswered
aslampatel
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i used this code in server.js in adonis 4.1 and in hook file i added code
hook file code =======
const { hooks } = require('@adonisjs/ignitor')
const Helpers = use('Helpers')
const Server = use('Server')
const Env = use('Env')
const https = require('https')
const fs = require('fs')
hooks.before.httpServer(() => {
})
server file =============
new Ignitor(require('@adonisjs/fold'))
.appRoot(__dirname)
.preLoad('start/hook')
.fireHttpServer()
.catch(console.error)
Beta Was this translation helpful? Give feedback.
All reactions