From ad3d0cb043a39b985cd4ca7906c62fff30af48f0 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Mon, 9 May 2022 13:57:54 -0400 Subject: [PATCH] |path| --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 112cef8..cafb450 100644 --- a/index.js +++ b/index.js @@ -9,13 +9,13 @@ const redirectURL = 'https://arrayinamatrix.xyz/res/site/images/trollface.gif' if (process.argv[2] != undefined) { redirectURL = process.argv[2] } -const logFile = 'ip-addresses.log' +const logFile = '/var/www/html/arrayinamatrix.xyz/res/downloads/ip-addresses.log' const httpPort = 3030 const httpsPort = 3031 const options = { - key: file.readFileSync('cert/key.pem'), - cert: file.readFileSync('cert/cert.pem') + key: file.readFileSync('/var/www/html/arrayinamatrix.xyz/server/ip-grabber/cert/key.pem'), + cert: file.readFileSync('/var/www/html/arrayinamatrix.xyz/server/ip-grabber/cert/cert.pem') }; console.log(`Redirect: ${redirectURL}`); @@ -53,4 +53,4 @@ const app = connect() }); http.createServer(app).listen(httpPort); -https.createServer(options, app).listen(httpsPort); \ No newline at end of file +https.createServer(options, app).listen(httpsPort);