mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 21:31:10 +10:00
storage module
This commit is contained in:
@ -23,4 +23,40 @@ export class EnvironmentService {
|
||||
getJwtTokenExpiresIn(): string {
|
||||
return this.configService.get<string>('JWT_TOKEN_EXPIRES_IN');
|
||||
}
|
||||
|
||||
getStorageDriver(): string {
|
||||
return this.configService.get<string>('STORAGE_DRIVER');
|
||||
}
|
||||
|
||||
getLocalStoragePath(): string {
|
||||
return this.configService.get<string>('LOCAL_STORAGE_PATH');
|
||||
}
|
||||
|
||||
getAwsS3AccessKeyId(): string {
|
||||
return this.configService.get<string>('AWS_S3_ACCESS_KEY_ID');
|
||||
}
|
||||
|
||||
getAwsS3SecretAccessKey(): string {
|
||||
return this.configService.get<string>('AWS_S3_SECRET_ACCESS_KEY');
|
||||
}
|
||||
|
||||
getAwsS3Region(): string {
|
||||
return this.configService.get<string>('AWS_S3_REGION');
|
||||
}
|
||||
|
||||
getAwsS3Bucket(): string {
|
||||
return this.configService.get<string>('AWS_S3_BUCKET');
|
||||
}
|
||||
|
||||
getAwsS3Endpoint(): string {
|
||||
return this.configService.get<string>('AWS_S3_ENDPOINT');
|
||||
}
|
||||
|
||||
getAwsS3Url(): string {
|
||||
return this.configService.get<string>('AWS_S3_URL');
|
||||
}
|
||||
|
||||
getAwsS3UsePathStyleEndpoint(): boolean {
|
||||
return this.configService.get<boolean>('AWS_S3_USE_PATH_STYLE_ENDPOINT');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user