db user and pass

This commit is contained in:
dimitar 2025-03-31 22:30:24 +02:00
parent 8079adf8d4
commit f964255f1a
3 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,8 @@
NODE_ENV=production
POSTGRES_USER=root
POSTGRES_PASSWORD=irina76
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=imk_db
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/imk_db?schema=public
API_URL="https://imkapi.oblak.solutions"
CORS_ORIGIN="[http://localhost:5173,https://www.placebo.mk,https://placebo.mk]"

View File

@ -9,9 +9,9 @@ services:
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=imk_db
- JWT_SECRET=${JWT_SECRET}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}

View File

@ -2,7 +2,8 @@ import axios from "axios";
const API_URL =
// process.env.NODE_ENV === "production"
"https://imkapi.oblak.solutions" || "http://localhost:3000";
// "https://imkapi.oblak.solutions" ||
"http://localhost:3000";
const api = axios.create({
baseURL: API_URL,