From b5b6082d268ae32c1bd73becc9130041bd6438d7 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Fri, 26 Jun 2026 21:00:50 +0700 Subject: [PATCH] fix: update env --- .env | 14 ++++++++++++++ .gitignore | 1 - backend/.env | 1 + frontend/.env | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .env create mode 120000 backend/.env create mode 100644 frontend/.env diff --git a/.env b/.env new file mode 100644 index 0000000..c955405 --- /dev/null +++ b/.env @@ -0,0 +1,14 @@ +DATABASE_URL="postgresql://postgres:password@localhost:5432/travel_db?schema=public" +PORT=3001 +REDIS_URL=redis://localhost:6379 +SMTP_HOST=smtp.gmail.com +SMTP_PORT=587 +SMTP_SECURE=false +SMTP_USER=yotripadmin@gmail.com +SMTP_PASS="ahhh suif kfcp waie" +GOOGLE_CLIENT_ID=639044397050-7hair384u6lle941h033trut1s3q47l4.apps.googleusercontent.com +FRONTEND_URL=https://yotrip.labz.io.vn +ADMIN_SECRET_KEY=Yotrip@Bitabub1 +# Development: Backend URL for vite dev server proxy (only used with npm run dev) +# For production: Nginx handles proxying, this is not used +VITE_BACKEND_URL=http://localhost:3001 diff --git a/.gitignore b/.gitignore index b89e93d..8f80c7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.env node_modules server/dist dist diff --git a/backend/.env b/backend/.env new file mode 120000 index 0000000..4a82335 --- /dev/null +++ b/backend/.env @@ -0,0 +1 @@ +../.env \ No newline at end of file diff --git a/frontend/.env b/frontend/.env new file mode 100644 index 0000000..b626b69 --- /dev/null +++ b/frontend/.env @@ -0,0 +1,3 @@ +VITE_API_URL=http://localhost:3001 +DATABASE_URL=postgresql://postgres:password@localhost:5432/travel_db?schema=public +VITE_GOOGLE_CLIENT_ID=639044397050-7hair384u6lle941h033trut1s3q47l4.apps.googleusercontent.com