Skip to content

Instantly share code, notes, and snippets.

View haandev's full-sized avatar

Hakan Özoğlu haandev

  • İstanbul
  • 04:23 (UTC +03:00)
View GitHub Profile
@haandev
haandev / httpsExpressApp.js
Created September 20, 2021 16:51 — forked from ryanhanwu/httpsExpressApp.js
Express JS HTTP + HTTPs server (including auto redirect)
var express = require('express'),
routes = require('./routes'),
upload = require('./routes/upload'),
http = require('http'),
https = require('https'),
fs = require('fs'),
path = require('path'),
httpApp = express(),
app = express(),
certPath = "cert";