An error occurred while building a project using the docker


(tairong) #1

Use docker to create a common voice, use Firefox to open http://localhost:9000, there is an error message


(Michael Henretty) #2

hi @s321790, have you tried following this:


(tairong) #3

How to change the website to “https”, I already have a SSL certificate


(Michael Henretty) #4

For local development? Or are you deploying on a server? For local, you might try this:


(tairong) #5

Which file of common voice needs to be modified? Change the common voice WEB server to HTTPS.

var path = require('path')
var fs = require('fs')
var express = require('express')
var https = require('https')

var certOptions = {
  key: fs.readFileSync(path.resolve('build/cert/server.key')),
  cert: fs.readFileSync(path.resolve('build/cert/server.crt'))
}

var app = express()

var server = https.createServer(certOptions, app).listen(443)

(Michael Henretty) #6

I haven’t looked into doing this myself, and unfortunately our engineer will be out until November so we won’t be able to give you full support at the moment. But here is the code you will have to modify: