mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
https
This commit is contained in:
+6
-5
@@ -19,12 +19,13 @@ async function bootstrap() {
|
||||
const secure = process.env.API_SECURE?.toLowerCase() == 'true';
|
||||
if (secure) {
|
||||
|
||||
const httpsOptions = {
|
||||
key: readFileSync('./secrets/key.pem'),
|
||||
cert: readFileSync('./secrets/cert.pem'),
|
||||
};
|
||||
|
||||
options = { https: httpsOptions };
|
||||
options = {
|
||||
https: {
|
||||
key: readFileSync('./secrets/key.pem'),
|
||||
cert: readFileSync('./secrets/cert.pem'),
|
||||
}
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user