This commit is contained in:
Stefan080106
2023-04-18 23:06:20 +02:00
parent 93616471f9
commit cd33d3f6cb

View File

@@ -1,11 +1,11 @@
import pdfLib from "pdf-to-printer";
import { jsPDF } from "jspdf";
import fs from "fs";
import puppeteer from 'puppeteer';
import express from 'express';
import Joi from 'joi';
import TelegramBot from 'node-telegram-bot-api';
import https from 'https';
import puppeteer from "puppeteer";
import express from "express";
import Joi from "joi";
import TelegramBot from "node-telegram-bot-api";
import https from "https";
const Logo = fs.readFileSync("./assets/Logo_fwaur.png", { encoding: "latin1" });
const config = JSON.parse(fs.readFileSync("./config.json", "utf8"));
@@ -25,16 +25,14 @@ const PORT = config.port || 2000;
const cacheFolder = "./cache/";
// Certificate
const privateKey = fs.readFileSync('./assets/ssl/localhost/localhost.decrypted.key');
const certificate = fs.readFileSync('./assets/ssl/localhost/localhost.crt');
const privateKey = fs.readFileSync("./assets/ssl/localhost/localhost.decrypted.key");
const certificate = fs.readFileSync("./assets/ssl/localhost/localhost.crt");
const credentials = {
key: privateKey,
cert: certificate
cert: certificate,
};
let bot = null;
const messageIDs = [1034133487];
@@ -198,8 +196,4 @@ const httpsServer = https.createServer(credentials, app);
httpsServer.listen(PORT, () => {
console.log(`PDF Printing Service listening on port ${PORT}`);
<<<<<<< HEAD
});
=======
});
>>>>>>> f7a7fa7d73eb3cc7af05ff42d4a8f9eefeae2aec