mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Auto generate ssl cert and download spritesheet on npm install
This commit is contained in:
1 parent
071a2e6dbe
commit
a307cd63a3
2 files changed
+39
-4
No files matched your search
@@ -7,13 +7,12 @@ var pki = forge.pki;
|
||||
var rsa = forge.pki.rsa;
|
||||
var startTime, endTime;
|
||||
|
||||
var doLogging = true;
|
||||
if(!doLogging) console.log = function(){};
|
||||
|
||||
module.exports = function({
|
||||
bits = 2048,
|
||||
certificatePath = "database/certificate",
|
||||
doLogging = false,
|
||||
} = {}){
|
||||
if(!doLogging) console.log = function(){};
|
||||
console.log("Generating SSL certificate with "+bits+" bits at "+certificatePath);
|
||||
|
||||
startTime = Date.now();
|
||||
|
||||
Reference in new issue
Block a user