Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Pass HTTPS certificate locations via Cirrus configuration #149

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions SignallingWebServer/cirrus.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const defaultConfig = {
UseFrontend: false,
UseMatchmaker: false,
UseHTTPS: false,
HTTPSCertFile: './certificates/client-cert.pem',
HTTPSKeyFile: './certificates/client-key.pem',
UseAuthentication: false,
LogToFile: true,
LogVerbose: true,
Expand Down Expand Up @@ -50,8 +52,8 @@ var http = require('http').Server(app);
if (config.UseHTTPS) {
//HTTPS certificate details
const options = {
key: fs.readFileSync(path.join(__dirname, './certificates/client-key.pem')),
cert: fs.readFileSync(path.join(__dirname, './certificates/client-cert.pem'))
key: fs.readFileSync(path.join(__dirname, config.HTTPSKeyFile)),
cert: fs.readFileSync(path.join(__dirname, config.HTTPSCertFile))
};

var https = require('https').Server(options, app);
Expand Down