Skip to content
Snippets Groups Projects
Commit 0807a061 authored by Atanamo's avatar Atanamo
Browse files

Extended config for SSL certificate

parent 9d0dd26b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,6 +31,8 @@ module.exports =
REQUIRE_CHANNEL_PW: false # Set to true, to force clients to set a password when creating a channel (The password then must be at least 3 digits long)
 
WEB_SERVER_PORT: 8050 # The port of the webserver started by this app
SSL_CERT_PATH: './certs/server.crt' # The ssl certificate to use for the https webserver
SSL_KEY_PATH: './certs/server.key' # The uncrypted private key file of the ssl certificate
 
CLIENT_AUTH_SECRET: 'SECRET_2' # A secret string to be used as part of the security token (The token needs to be sent from a client on login)
 
Loading
Loading
Loading
Loading
@@ -19,8 +19,8 @@ Q.longStackSupport = Config.DEBUG_ENABLED # On debug mode, enable better stack
 
## Create library API objects
httpsOptions =
key: fs.readFileSync('./certs/server.key')
cert: fs.readFileSync('./certs/server.crt')
cert: fs.readFileSync(Config.SSL_CERT_PATH)
key: fs.readFileSync(Config.SSL_KEY_PATH)
 
app = express()
server = https.createServer(httpsOptions, app) # Create HTTP server instance
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment