Add iteration through screenshot array in frontend/src/component/Event.js
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@@ -11,7 +11,7 @@ const mongoUri = process.env.MONGO_URI || 'mongodb://127.0.0.1:27017/default?rep
|
||||
const minioURI = new URL(process.env.MINIO_URI || 'http://kspace-mugshot:2mSI6HdbJ8@127.0.0.1:9000/kspace-mugshot');
|
||||
const minioBucket = minioURI.pathname.substring(1);
|
||||
console.info("Using bucket:", minioBucket);
|
||||
const historyNumber = parseInt(process.env.HISTORY_AMOUNT) || 1000;
|
||||
const historyNumber = parseInt(process.env.HISTORY_AMOUNT) || 10;
|
||||
|
||||
// Stream set-up variables
|
||||
let changeStream;
|
||||
@@ -39,7 +39,7 @@ async function run() {
|
||||
app.get('/events', async function (request, response) {
|
||||
let minioClient = new minio.Client({
|
||||
endPoint: minioURI.hostname,
|
||||
port: parseInt(minioURI.port) || (minioURI.protocol == 'https' ? 443 : 80),
|
||||
port: parseInt(minioURI.port) || (minioURI.protocol == 'https:' ? 443 : 80),
|
||||
useSSL: minioURI.protocol == 'https:',
|
||||
accessKey: minioURI.username,
|
||||
secretKey: minioURI.password
|
||||
|
Reference in New Issue
Block a user