From d2c69b655db1ab8d352c23657396c70071cf3fd7 Mon Sep 17 00:00:00 2001 From: dimitar Date: Mon, 31 Mar 2025 08:10:10 +0200 Subject: [PATCH] check point --- backend/.env | 12 ------------ backend/src/main.ts | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/backend/.env b/backend/.env index 4b3b433..e29a2e4 100644 --- a/backend/.env +++ b/backend/.env @@ -1,13 +1,7 @@ -# Environment variables declared in this file are automatically made available to Prisma. -# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema - -# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. -# See the documentation for all the connection string options: https://pris.ly/d/connection-strings POSTGRES_USER=root POSTGRES_PASSWORD=irina76 POSTGRES_DB=imk_db DATABASE_URL="postgresql://postgres:postgres@postgres:5432/imk_db?schema=public" -#DATABASE_URL="postgresql://root:irina76@localhost:5432/imk?schema=public" JWT_SECRET=some-secret AWS_REGION=EU2 AWS_ACCESS_KEY_ID=4d2f5655369a02100375e3247d7e1fe6 @@ -15,12 +9,6 @@ AWS_SECRET_ACCESS_KEY=6d4723e14c0d799b89948c24dbe983e4 AWS_S3_BUCKET_NAME=imk-data AWS_ENDPOINT_URL=https://eu2.contabostorage.com -#Email Configuration -# SMTP_HOST=smtp.gmail.com -# SMTP_PORT=587 -# SMTP_USER=taratur@gmail.com -# SMTP_PASS=dziy nccc svgg bovb -# EMAIL_FROM=taratur@gmail.com SMTP_HOST=imk.mk SMTP_PORT=465 diff --git a/backend/src/main.ts b/backend/src/main.ts index 78934ad..eb3747a 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -1,6 +1,6 @@ +import { Logger, ValidationPipe } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { AppModule } from "./app.module"; -import { Logger, ValidationPipe } from "@nestjs/common"; async function bootstrap() { const logger = new Logger("Bootstrap"); @@ -18,7 +18,7 @@ async function bootstrap() { "https://www.placebo.mk", "https://placebo.mk", "http://localhost:5173", - 'https://imkapi.oblak.solutions', + "https://imkapi.oblak.solutions", ], methods: "GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS", credentials: true,