Enviado em 14/10/2022 - 15:39h
Olá,import express from "express";
import * as dotenv from "dotenv";
import app from "./app.js";
import {} from "dotenv/config";
import fs from "fs";
import https from "https"
https
.createServer(
// Provide the private and public key to the server by reading each
// file's content with the readFileSync() method.
{
key: fs.readFileSync("/etc/letsencrypt/live/fischerserver.shop/privkey.pem"),
cert: fs.readFileSync("/etc/letsencrypt/live/fischerserver.shop/fullchain.pem"),
},
app
)
.listen(3333, () => {
console.log(`server HTTPS is running on port: (3333); .env.PORT: ${process.env.PORT}`);
});
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Como converter imagens PNG/JPEG para SVG em linha de comando
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Restaurando Fontes de Download do Hydra no Linux
Atualizando "na marra" o YT-DLP quando começa a dar erro de downloads
Como instalar o WPS com interface e corretor ortográfico em PT-BR no Arch Linux
Bluetooth CSR 4.0 Dongle (Alternativo) (4)
Controle do PS5 no Linux Mint funciona? [RESOLVIDO] (6)