Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
494 B
20 lines
494 B
5 years ago
|
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 + '/server.key'),
|
||
|
cert: fs.readFileSync(__dirname + '/server.cert')
|
||
|
}, app).listen(9001, () => {
|
||
|
console.log('Listening...');
|
||
|
});
|