Skip to content

Commit ab14456

Browse files
committed
로그인 후 리디렉션 URL 환경변수 변경
- 좀 더 범용적인 사용을 위해 CLIENT_HOST 로 변경함. - 관련하여 사용되지 않는 불필요한 환경변수 제거
1 parent 25f8d07 commit ab14456

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ jobs:
173173
-e KAKAO_CLIENT_ID="${{ secrets.KAKAO_CLIENT_ID }}" \
174174
-e KAKAO_CLIENT_SECRET="${{ secrets.KAKAO_CLIENT_SECRET }}" \
175175
-e KAKAO_AUTH_CALLBACK_URL="${{ secrets.KAKAO_AUTH_CALLBACK_URL }}" \
176-
-e AUTH_SUCCESS_URL="${{ secrets.AUTH_SUCCESS_URL }}" \
177-
-e CLIENT_ENDPOINT="${{ secrets.CLIENT_ENDPOINT }}" \
178-
-e CLIENT_DOMAIN="${{ secrets.CLIENT_DOMAIN }}" \
176+
-e CLIENT_HOST="${{ secrets.CLIENT_HOST }}" \
179177
-e SESSION_SECRET="${{ secrets.SESSION_SECRET }}" \
180178
--restart always \
181179
${{ secrets.ECR_REGISTRY }}/loa-work/web-service:latest

src/backend/src/auth/auth.controller.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ export class AuthController {
2020
};
2121

2222
return res.redirect(
23-
this.configService.get<string>(
24-
'AUTH_SUCCESS_URL',
25-
'http://localhost:3000/',
26-
),
23+
this.configService.get<string>('CLIENT_HOST', 'http://localhost:3000/'),
2724
);
2825
}
2926

@@ -41,10 +38,7 @@ export class AuthController {
4138
};
4239

4340
return res.redirect(
44-
this.configService.get<string>(
45-
'AUTH_SUCCESS_URL',
46-
'http://localhost:3000/',
47-
),
41+
this.configService.get<string>('CLIENT_HOST', 'http://localhost:3000/'),
4842
);
4943
}
5044

@@ -62,10 +56,7 @@ export class AuthController {
6256
};
6357

6458
return res.redirect(
65-
this.configService.get<string>(
66-
'AUTH_SUCCESS_URL',
67-
'http://localhost:3000/',
68-
),
59+
this.configService.get<string>('CLIENT_HOST', 'http://localhost:3000/'),
6960
);
7061
}
7162

0 commit comments

Comments
 (0)