diff --git a/.env b/.env index 2e3f270..896d4a6 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ VITE_BASE_URL=http://localhost:3000 VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 SMTP_USER=rentalservicekg@yandex.ru -SMTP_APP_PASSWORD=uljislsoihthciju +SMTP_PASS=uljislsoihthciju DATABASE_URL="file:./database.db" \ No newline at end of file diff --git a/.env.developer b/.env.developer index 2e3f270..896d4a6 100644 --- a/.env.developer +++ b/.env.developer @@ -1,5 +1,5 @@ VITE_BASE_URL=http://localhost:3000 VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 SMTP_USER=rentalservicekg@yandex.ru -SMTP_APP_PASSWORD=uljislsoihthciju +SMTP_PASS=uljislsoihthciju DATABASE_URL="file:./database.db" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b6422d2..32052d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ENV PORT=80 ENV VITE_BASE_URL=https://rental.koptilnya.xyz ENV VITE_YANDEX_MAPS_KEY=13f4c06b-cb7e-4eeb-81f1-af52f12587b2 ENV SMTP_USER=rentalservicekg@yandex.ru -ENV SMTP_APP_PASSWORD=uljislsoihthciju +ENV SMTP_PASS=uljislsoihthciju ENV DATABASE_URL="file:./database.db" diff --git a/server/api/send_mail.post.ts b/server/api/send_mail.post.ts index 5b9a2f4..2ca38aa 100644 --- a/server/api/send_mail.post.ts +++ b/server/api/send_mail.post.ts @@ -10,7 +10,7 @@ export default defineEventHandler(async (event) => { secure: false, auth: { user: process.env.SMTP_USER, - pass: process.env.SMTP_APP_PASSWORD, + pass: process.env.SMTP_PASS, }, })