Skip to content
Snippets Groups Projects
Commit b133b0ab authored by Paolo Brasolin's avatar Paolo Brasolin
Browse files

feat: let seeder read storage credentials from ENV

parent 8c67be5c
No related branches found
No related tags found
No related merge requests found
...@@ -6,14 +6,13 @@ import sharp from "sharp"; ...@@ -6,14 +6,13 @@ import sharp from "sharp";
import { getPagesBaseUrl } from "./scraper"; import { getPagesBaseUrl } from "./scraper";
import { pad, progress, msg } from "./util"; import { pad, progress, msg } from "./util";
// TODO: configure this form ENV const BUCKET_NAME = process.env.STORAGE_BUCKET!;
const BUCKET_NAME = "oetzit";
const minioClient = new Client({ const minioClient = new Client({
endPoint: "minio", accessKey: process.env.STORAGE_ACCESS_KEY!,
accessKey: "Ilzy1c8s0eig76m4", secretKey: process.env.STORAGE_SECRET_KEY!,
secretKey: "x4YDvLSLKi6jScWv1wTSZwPW1BnL6nhg", endPoint: process.env.STORAGE_ENDPOINT!,
port: 9000, // port: 9000,
useSSL: false, // useSSL: false,
}); });
interface processingCallback { interface processingCallback {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment