mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-27 17:54:11 +00:00
feature(cloudcmd) drop ssl suport
This commit is contained in:
parent
4e59f4c16e
commit
30e4905ffd
5 changed files with 7 additions and 62 deletions
12
cloudcmd.js
12
cloudcmd.js
|
|
@ -25,9 +25,6 @@
|
|||
|
||||
Config = main.config,
|
||||
|
||||
KEY = DIR + 'ssl/ssl.key',
|
||||
CERT = DIR + 'ssl/ssl.crt',
|
||||
|
||||
PATH_INDEX = DIR_FS + 'index.html',
|
||||
|
||||
TMPL_PATH = [
|
||||
|
|
@ -144,9 +141,6 @@
|
|||
return path;
|
||||
});
|
||||
|
||||
if (Config.ssl)
|
||||
filesList.push(KEY, CERT);
|
||||
|
||||
files.read(filesList, 'utf8', function(error, files) {
|
||||
var status, msg, names;
|
||||
|
||||
|
|
@ -161,12 +155,6 @@
|
|||
Template[name] = files[path];
|
||||
});
|
||||
|
||||
if (Config.ssl)
|
||||
params.ssl = {
|
||||
key : files[KEY],
|
||||
cert : files[CERT]
|
||||
};
|
||||
|
||||
names = TMPL_PATH.map(function(item) {
|
||||
return item + '.html';
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue