diff --git a/nginx/default.conf b/nginx/default.conf index 66aebaf..58c8a28 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name _; + server_name aiindiacpa.duckdns.org 147.93.168.145; # Max upload size — matches backend 10MB limit with buffer client_max_body_size 15m; diff --git a/services/api/app/main.py b/services/api/app/main.py index b15d78a..51536e1 100644 --- a/services/api/app/main.py +++ b/services/api/app/main.py @@ -61,7 +61,7 @@ _ALLOWED_ORIGINS = [ o.strip() for o in os.getenv( "ALLOWED_ORIGINS", - "https://bookkeepro.net,http://localhost:8000", + "https://aiindiacpa.duckdns.org,http://localhost:8000", ).split(",") if o.strip() ] diff --git a/services/api/app/routers/review.py b/services/api/app/routers/review.py index 4026495..a9e5264 100644 --- a/services/api/app/routers/review.py +++ b/services/api/app/routers/review.py @@ -1,3 +1,4 @@ +import os import logging from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session @@ -12,7 +13,7 @@ logger = logging.getLogger(__name__) router = APIRouter(prefix="/api/review", tags=["review"]) -DASHBOARD_LINK = "https://bookkeepro.net/dashboard" +DASHBOARD_LINK = f"{os.getenv('FRONTEND_URL', 'https://aiindiacpa.duckdns.org')}/dashboard" # ───────────────────────────────────────────── diff --git a/services/api/app/utils/login_email.py b/services/api/app/utils/login_email.py index 510d912..8e4e8a4 100644 --- a/services/api/app/utils/login_email.py +++ b/services/api/app/utils/login_email.py @@ -1,52 +1,8 @@ +import os from app.utils.emailer import send_email +_FRONTEND_URL = os.getenv("FRONTEND_URL", "https://aiindiacpa.duckdns.org") -# async def send_login_welcome_email(to: str, name: str | None = None): -# display_name = name or "Valued Customer" - -# body = f""" -#
Dear {display_name},
- -#-# Welcome to BookKeepro -#
- -#-# You have successfully logged in to your account. -# We’re excited to support you with your compliance and bookkeeping needs. -#
- -#-# You can access your dashboard anytime using the link below: -#
- -#-# -# 👉 Go to Dashboard -# -#
- -#-# If this login was not initiated by you, please contact our support team immediately. -#
- -#
-# Kind regards,
-# BookKeepro Team
-#
Your account has been successfully created. - We’re excited to support you with your compliance and bookkeeping needs. + We're excited to support you with your compliance and bookkeeping needs.
@@ -68,7 +24,7 @@ async def send_signup_welcome_email(to: str, name: str | None = None):