0b70e1af8c
New storage (CacheStorage) Safari fixes Webpack configuration New slider animation
20 lines
489 B
JavaScript
20 lines
489 B
JavaScript
const compression = require('compression');
|
|
const express = require('express');
|
|
const https = require('https');
|
|
const fs = require('fs');
|
|
|
|
const app = express();
|
|
|
|
app.use(compression());
|
|
app.use(express.static('public'));
|
|
|
|
app.get('/', (req, res) => {
|
|
res.sendFile(__dirname + '/public/index.html');
|
|
});
|
|
|
|
https.createServer({
|
|
key: fs.readFileSync(__dirname + '/tweb.key'),
|
|
cert: fs.readFileSync(__dirname + '/tweb.crt')
|
|
}, app).listen(9001, () => {
|
|
console.log('Listening...');
|
|
}); |