tcp LISTEN 0 244 0.0.0.0:5432 0.0.0.0:* users:(("postgres",pid=1110,fd=5))
tcp LISTEN 0 244 [::]:5432 [::]:* users:(("postgres",pid=1110,fd=6))
const https = require('https');
const http = require('http');
const fs = require('fs');
const express = require('express');
const app = express();
app.get("*", (req, res) => {
res.status(404).send("Oook booy");
});
const options = {
cert: fs.readFileSync('/hepka/sslcert/fullchain.pem'),
key: fs.readFileSync('/hepka/sslcert/privkey.pem')
}
http.createServer(app).listen(80, "185.188.182.115")
https.createServer(options, app).listen(443, "185.188.182.115");