Rendering: Add configurable Jose endpoint

This commit is contained in:
Minz authored and Minz committed 2023-08-07 17:34:19 +02:00
1 parent d99b8ab4d6
commit 189e126983
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -10,3 +10,4 @@ DB_PORT=
API_PORT=3080
API_ACCESS_TOKEN=
HOMEPAGE_URL=
JOSE_ENDPOINT=
+2 -1
View File
@@ -1,3 +1,4 @@
require("dotenv").config();
const sharp = require('sharp');
const crypto = require('crypto');
const fs = require('fs');
@@ -105,7 +106,7 @@ module.exports = {
}
console.log("Fetching ", );
let { data } = await axios.post('https://jose.toho.mnz.gg/jobs', job);
let { data } = await axios.post(`${process.env.JOSE_ENDPOINT}/jobs`, job);
console.log("Fetched ", data);
return data["path"];