core: move storage setting to ~/.hydro/env

This commit is contained in:
undefined committed 2021-09-17 18:51:36 +08:00
1 parent 12f2a4f2bb
commit e6f933a531
4 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ class StorageService {
endPointForUser,
endPointForJudge,
};
if (process.env.MINIO_ACCESS_KEY && process.env.MINIO_SECRET_KEY) {
if (process.env.MINIO_ACCESS_KEY) {
logger.info('Using MinIO key from environment variables');
this.opts.accessKey = process.env.MINIO_ACCESS_KEY;
this.opts.secretKey = process.env.MINIO_SECRET_KEY;