diff --git a/dictation_server/.env b/dictation_server/.env index 56547f3..8d0796d 100644 --- a/dictation_server/.env +++ b/dictation_server/.env @@ -12,3 +12,4 @@ REFRESH_TOKEN_LIFETIME_DEFAULT=2592000000 TENANT_NAME=adb2codmsdev SIGNIN_FLOW_NAME=b2c_1_signin_dev EMAIL_CONFIRM_LIFETIME=86400000 +APP_DOMAIN=https://10.1.0.10:4443/ \ No newline at end of file diff --git a/dictation_server/.env.local.example b/dictation_server/.env.local.example index 0e2b582..e721623 100644 --- a/dictation_server/.env.local.example +++ b/dictation_server/.env.local.example @@ -15,3 +15,4 @@ SENDGRID_API_KEY=xxxxxxxxxxxxxxxx MAIL_FROM=xxxxx@xxxxx.xxxx NOTIFICATION_HUB_NAME=ntf-odms-shared NOTIFICATION_HUB_CONNECT_STRING=XXXXXXXXXXXXXXXXXX +APP_DOMAIN=http://localhost:8081/ \ No newline at end of file diff --git a/dictation_server/src/gateways/sendgrid/sendgrid.service.ts b/dictation_server/src/gateways/sendgrid/sendgrid.service.ts index dbe51ed..b5ffe81 100644 --- a/dictation_server/src/gateways/sendgrid/sendgrid.service.ts +++ b/dictation_server/src/gateways/sendgrid/sendgrid.service.ts @@ -37,7 +37,7 @@ export class SendGridService { lifetime, privateKey, ); - const domains = 'http://127.0.0.1/'; + const domains = this.configService.get('APP_DOMAIN'); const path = 'mail-confirm/'; return {