feat: update official docker images

This commit is contained in:
prafull-opensignlabs
2024-08-02 12:46:01 +05:30
parent 375dc86f0a
commit d4e0f05cef
16 changed files with 227 additions and 157 deletions
@@ -28,7 +28,7 @@ const refreshAccessToken = async refreshToken => {
// Function to create a raw email message
const makeEmail = async (to, from, subject, html, url, pdfName) => {
const protocol = new URL(process.env.SERVER_URL);
const publicUrl = new URL(process.env.SERVER_URL);
const htmlContent = html;
const boundary = 'boundary_' + Date.now().toString(16);
let str;
@@ -37,7 +37,7 @@ const makeEmail = async (to, from, subject, html, url, pdfName) => {
let Pdf = fs.createWriteStream('test.pdf');
const writeToLocalDisk = () => {
return new Promise((resolve, reject) => {
if (useLocal !== 'true' && protocol.hostname !== 'localhost') {
if (useLocal !== 'true' && publicUrl.protocol !== 'http:') {
https.get(url, async function (response) {
response.pipe(Pdf);
response.on('end', () => resolve('success'));