diff options
| -rw-r--r-- | src/Main.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Main.ts b/src/Main.ts index bf75f2a..30368e9 100644 --- a/src/Main.ts +++ b/src/Main.ts @@ -49,12 +49,12 @@ function Main(dirPath: string, cfg: {[key: string]: any}, cli_options?: {[key: s App.use(express.static(`${dirPath}/static`)); if (cli_options) { + httpc = http.createServer(App); + httpc.listen(parseInt(cfg.Ports.HTTP), () => { + log.info("Image hoster is running on port", cfg.Ports.HTTP); + }); + if (!cli_options.noSsl) { - httpc = http.createServer(App); - httpc.listen(parseInt(cfg.Ports.HTTP), () => { - log.info("Image hoster is running on port", cfg.Ports.HTTP); - }); - } else { if ( !cfg.Certificate.Key || !cfg.Certificate.Cert || |
