len0rd is an idiot confirmed

This commit is contained in:
len0rd 2018-08-23 21:18:47 -06:00
parent 27f84c9d60
commit ed70b15219
2 changed files with 2 additions and 24 deletions

View file

@ -1,22 +1,7 @@
const PORT = 8090; const PORT = 8090;
// var fs = require('fs');
// var https = require('https');
// var http = require('http');
var express = require('express'); var express = require('express');
var app = express(); var app = express();
// var credentials;
// var useHttps = true;
// try {
// var privateKey = fs.readFileSync('/etc/letsencrypt/live/lenord.me/privkey.pem', 'utf-8');
// var certificate = fs.readFileSync('/etc/letsencrypt/live/lenord.me/fullchain.pem', 'utf-8');
// credentials = {key: privateKey, cert: certificate};
// } catch (error) {
// useHttps = false;
// console.warn('WARN::NOT USING HTTPS, reverting to HTTP');
// console.log(error);
// }
console.log('Starting express server'); console.log('Starting express server');
// set the view engine to ejs // set the view engine to ejs
@ -49,10 +34,3 @@ app.get(/\/.*/, function(req, res) {
}); });
app.listen(PORT); app.listen(PORT);
// if (useHttps) {
// var httpsServer = https.createServer(credentials, app);
// httpsServer.listen(PORT);
// } else {
// var httpServer = http.createServer(app);
// httpServer.listen(PORT);
// }

View file

@ -76,7 +76,7 @@
<p class="card-text">Building my dream desk on a poor-college-student budget. The end result: a portable and rock solid desk with a couple of flaws</p> <p class="card-text">Building my dream desk on a poor-college-student budget. The end result: a portable and rock solid desk with a couple of flaws</p>
</div> </div>
<div class="card-footer pb-3"> <div class="card-footer pb-3">
<a href="projects/palletdesk" class="btn btn-outline-light">Read More</a> <a href="projects/palletDesk" class="btn btn-outline-light">Read More</a>
</div> </div>
</div> </div>
<div class="card bg-dark border-light text-white"> <div class="card bg-dark border-light text-white">