diff --git a/.env b/.env deleted file mode 100644 index 47f95ef..0000000 --- a/.env +++ /dev/null @@ -1,34 +0,0 @@ -# AccManager Backend Configuration - -# Application -NODE_ENV=production - -# Host port exposed by docker compose -APP_PORT=3000 - -# Image used for server pull deployment -DOCKER_IMAGE=toiiiiday/accmanager:1.1.4 - -# Container app port -PORT=3000 - -# SQL Server Configuration -DB_SERVER=172.20.235.176 -DB_USER=sa -DB_PASSWORD=robotics@2022 -DB_NAME=AccManager -DB_ENCRYPT=false -DB_TRUST_CERTIFICATE=true -DB_CONNECT_TIMEOUT=30000 - -# Security -BCRYPT_ROUNDS=12 - -# Email Verification (SMTP) -APP_BASE_URL=https://accrobot.pnkr.asia/ -SMTP_HOST=smtp.gmail.com -SMTP_PORT=587 -SMTP_SECURE=false -SMTP_USER=robotics.gitlab.2fa@gmail.com -SMTP_PASS=jaljalhreomqruqo -SMTP_FROM=robotics.gitlab.2fa@gmail.com diff --git a/.gitignore b/.gitignore index 3c3629e..29e62d3 100644 Binary files a/.gitignore and b/.gitignore differ diff --git a/README.md b/README.md index 101cd67..7d0d6d7 100644 --- a/README.md +++ b/README.md @@ -56,20 +56,7 @@ He thong da ho tro xac thuc email cho: - Dang ky tai khoan moi. - Doi email trong phan ho so ca nhan. -Can cau hinh cac bien moi truong SMTP sau: -- `APP_BASE_URL`: URL truy cap he thong (vi du `http://localhost:3000` hoac domain production). -- `SMTP_HOST`: Host SMTP (vi du `smtp.gmail.com`). -- `SMTP_PORT`: Port SMTP (thuong la `587` cho TLS hoac `465` cho SSL). -- `SMTP_SECURE`: `true` neu dung SSL (port 465), nguoc lai `false`. -- `SMTP_USER`: Tai khoan gui email. -- `SMTP_PASS`: Mat khau app/email. -- `SMTP_FROM`: Dia chi hien thi nguoi gui (co the de trong de dung `SMTP_USER`). -- `EMAIL_VERIFY_TOKEN_TTL_MINUTES`: So phut het han link xac thuc (mac dinh 30). - -Neu chua cau hinh SMTP, he thong van tao tai khoan nhung se tra ve link xac thuc dang preview cho moi truong dev. - ---- Phiên bản tài liệu: 3.0.0 Cập nhật: Tháng 4 năm 2026