This commit is contained in:
18
config.ts
Normal file
18
config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'dotenv/config';
|
||||
|
||||
export const config = {
|
||||
port: process.env.PORT ?? 80,
|
||||
repo: {
|
||||
name: 'custom'
|
||||
},
|
||||
minio: {
|
||||
bucket: 'archrepo',
|
||||
client: {
|
||||
endPoint: process.env.MINIO_ENDPOINT ?? 'minio.konchin.com',
|
||||
useSSL: process.env.MINIO_USESSL == 'true',
|
||||
port: (process.env.MINIO_PORT as unknown as number) ?? 9000,
|
||||
accessKey: process.env.MINIO_ACCESSKEY ?? '',
|
||||
secretKey: process.env.MINIO_SECRETKEY ?? '',
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user