- update translations

- add mail_from env var
- update docs for swarm deployment
This commit is contained in:
Amruth Pillai
2023-11-22 22:05:54 +01:00
parent da2f4dba60
commit 1580455b3f
59 changed files with 950 additions and 1170 deletions

View File

@ -12,7 +12,6 @@ import { StorageService } from "./storage.service";
MinioModule.registerAsync({
inject: [ConfigService],
useFactory: (configService: ConfigService<Config>) => ({
useSSL: false,
endPoint: configService.getOrThrow<string>("STORAGE_ENDPOINT"),
port: configService.getOrThrow<number>("STORAGE_PORT"),
region: configService.get<string>("STORAGE_REGION"),

View File

@ -102,7 +102,7 @@ export class StorageService implements OnModuleInit {
const extension = type === "resumes" ? "pdf" : "jpg";
const storageUrl = this.configService.get<string>("STORAGE_URL");
const filepath = `${userId}/${type}/${filename}.${extension}`;
const url = `${storageUrl}/${this.bucketName}/${filepath}`;
const url = `${storageUrl}/${filepath}`;
const metadata =
extension === "jpg"
? { "Content-Type": "image/jpeg" }