Initial fork commit

This commit is contained in:
Pierre Lannoy 2023-12-12 19:45:36 +01:00
commit 34d9abec19
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31
25 changed files with 36 additions and 3840 deletions

2
app.js
View file

@ -3,11 +3,13 @@ import https from "https";
import app from "./index.js";
import listener from "./src/client.js";
import { SniPrepare, SniListener } from "./src/sni.js";
// production endpoint (use pm2/phusion/whatever)
config();
const port80 = parseInt(process.env.HTTP_PORT || "80");
const port443 = parseInt(process.env.HTTPS_PORT || "443");
const main = async () => {
await SniPrepare();
const httpsServer = https.createServer({