メール認証URLのドメインを環境変数で設定

This commit is contained in:
makabe 2023-04-11 17:50:39 +09:00
parent 33509fb228
commit 50cbcb1d81
3 changed files with 3 additions and 1 deletions

View File

@ -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/

View File

@ -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/

View File

@ -37,7 +37,7 @@ export class SendGridService {
lifetime,
privateKey,
);
const domains = 'http://127.0.0.1/';
const domains = this.configService.get<string>('APP_DOMAIN');
const path = 'mail-confirm/';
return {