Skip to content

Commit ef1c90e

Browse files
committed
server-ssl.js
/root │ ├── /error │ ├── 404.html │ └── 500.html │ ├── /ssl │ ├── /openssl │ │ │ ├── private-key.pem │ └── certificate.pem │ └── ssl.js │ ├── /website │ └── index.html <---- Your website goes here │ ├── server-ssl.js <--- server config └── start-windows.bat
1 parent e9b48bd commit ef1c90e

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

start-windows.bat

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,23 @@ if "%KEYS%"=="1" (
102102
)
103103
)
104104

105-
:restartLoop
106-
setlocal
105+
@REM Install/Update NPM Packages
106+
107+
call npm update package.json
108+
109+
if %errorlevel% neq 0 ( echo Npm is missing, Install Node.js and try again
110+
exit 0
111+
)
112+
113+
node -v >nul 2>&1
114+
115+
if %errorlevel% neq 0 ( echo Install Node.js and try again
116+
exit 0
117+
)
107118

108119
echo Starting SSL Web Server
120+
:restartLoop
121+
setlocal
109122

110123
@REM Check Certificate end date
111124

@@ -121,20 +134,6 @@ if "!OPEN_SSL_IN_PATH!"=="2" (
121134
)
122135
)
123136

124-
@REM Install/Update NPM Packages
125-
126-
call npm update package.json
127-
128-
if %errorlevel% neq 0 ( echo Npm is missing, Install Node.js and try again
129-
exit 0
130-
)
131-
132-
node -v >nul 2>&1
133-
134-
if %errorlevel% neq 0 ( echo Install Node.js and try again
135-
exit 0
136-
)
137-
138137
node.exe server-ssl.js %* --arAvailable --notAfter="!DATE!"
139138

140139
set exitCode=%errorlevel%

0 commit comments

Comments
 (0)