backend changes
This commit is contained in:
parent
f12b236e46
commit
fdbcdcb338
@ -232,7 +232,7 @@ services:
|
|||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
- PORT=8000
|
- PORT=8000
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- FRONTEND_URL=* # Allow all URLs
|
- FRONTEND_URL=http://localhost:3001 # Allow all URLs
|
||||||
- CORS_ORIGINS=* # Allow all URLs
|
- CORS_ORIGINS=* # Allow all URLs
|
||||||
- CORS_METHODS=GET,POST,PUT,DELETE,PATCH,OPTIONS # Add this line
|
- CORS_METHODS=GET,POST,PUT,DELETE,PATCH,OPTIONS # Add this line
|
||||||
- CORS_CREDENTIALS=true # Add this line
|
- CORS_CREDENTIALS=true # Add this line
|
||||||
@ -506,7 +506,7 @@ services:
|
|||||||
- JWT_ACCESS_EXPIRY=24h
|
- JWT_ACCESS_EXPIRY=24h
|
||||||
- JWT_ADMIN_ACCESS_EXPIRY=7d
|
- JWT_ADMIN_ACCESS_EXPIRY=7d
|
||||||
- JWT_REFRESH_EXPIRY=7d
|
- JWT_REFRESH_EXPIRY=7d
|
||||||
- FRONTEND_URL=*
|
- FRONTEND_URL=http://localhost:3001
|
||||||
# Email Configuration
|
# Email Configuration
|
||||||
- SMTP_HOST=smtp.gmail.com
|
- SMTP_HOST=smtp.gmail.com
|
||||||
- SMTP_PORT=587
|
- SMTP_PORT=587
|
||||||
@ -614,7 +614,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- PORT=8012
|
- PORT=8012
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- FRONTEND_URL=*
|
- FRONTEND_URL=http://localhost:3001
|
||||||
- POSTGRES_HOST=postgres
|
- POSTGRES_HOST=postgres
|
||||||
- POSTGRES_PORT=5432
|
- POSTGRES_PORT=5432
|
||||||
- POSTGRES_DB=dev_pipeline
|
- POSTGRES_DB=dev_pipeline
|
||||||
|
|||||||
@ -164,10 +164,20 @@ class AuthService {
|
|||||||
<p>Hi <b>${user.first_name || user.username}</b>, thanks for registering with us on <b>${dateString}</b>.
|
<p>Hi <b>${user.first_name || user.username}</b>, thanks for registering with us on <b>${dateString}</b>.
|
||||||
Please confirm your email address by clicking the button below:</p>
|
Please confirm your email address by clicking the button below:</p>
|
||||||
<div style="text-align:center;margin:24px 0;">
|
<div style="text-align:center;margin:24px 0;">
|
||||||
<a href="${verifyUrl}" style="background:#1677ff;color:#fff;text-decoration:none;padding:12px 20px;border-radius:6px;display:inline-block;font-weight:600;">Verify Email</a>
|
<table cellpadding="0" cellspacing="0" border="0" style="margin:0 auto;">
|
||||||
|
<tr>
|
||||||
|
<td style="background:#1677ff;border-radius:6px;padding:0;">
|
||||||
|
<a href="${verifyUrl}" style="background:#1677ff;color:#fff;text-decoration:none;padding:12px 20px;border-radius:6px;display:block;font-weight:600;font-size:16px;">Verify Email</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<p>This link is valid for <b>24 hours</b>.</p>
|
<p>This link is valid for <b>24 hours</b>.</p>
|
||||||
<p>If you didn’t create this account, please ignore this email.</p>
|
<p>If you didn't create this account, please ignore this email.</p>
|
||||||
|
<p style="font-size:14px;color:#666;margin-top:20px;border-top:1px solid #eee;padding-top:15px;">
|
||||||
|
<strong>Can't click the button?</strong> Copy and paste this link into your browser:<br>
|
||||||
|
<span style="color:#1677ff;word-break:break-all;">${verifyUrl}</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user