mirror of
https://github.com/alexandernicholson/s3panoramic.git
synced 2026-05-05 06:20:41 +09:00
fix: enable non-access-key flows
This commit is contained in:
parent
62562c9af6
commit
4d22d93e90
@@ -5,12 +5,10 @@ import { objectList } from "../templates/components/object_list.ts";
|
||||
|
||||
const apiRoutes = new Hono();
|
||||
|
||||
const storageService = new StorageService(
|
||||
Deno.env.get("S3_BUCKET") || "",
|
||||
Deno.env.get("S3_REGION") || "",
|
||||
Deno.env.get("AWS_ACCESS_KEY_ID") || "",
|
||||
Deno.env.get("AWS_SECRET_ACCESS_KEY") || "",
|
||||
);
|
||||
const storageService = new StorageService({
|
||||
bucket: Deno.env.get("S3_BUCKET") || "",
|
||||
region: Deno.env.get("S3_REGION") || ""
|
||||
});
|
||||
|
||||
const searchService = new SearchService(storageService);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user