Skip to content

Commit

Permalink
config: secret name ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizyHub authored and flydog98 committed Dec 5, 2023
1 parent 421bf53 commit 443dd15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
-e CONTAINER_GIT_USERNAME=${{ secrets.CONTAINER_GIT_USERNAME }} \
-e MONGODB_HOST=${{ secrets.MONGODB_HOST }} \
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \
-e X-NCP-CLOVASTUDIO-API-KEY=${{ secrets.X-NCP-CLOVASTUDIO-API-KEY }} \
-e X-NCP-APIGW-API-KEY=${{ secrets.X-NCP-APIGW-API-KEY }} \
-e X-NCP-CLOVASTUDIO-REQUEST-ID=${{ secrets.X-NCP-CLOVASTUDIO-REQUEST-ID }} \
-e X_NCP_CLOVASTUDIO_API_KEY=${{ secrets.X_NCP_CLOVASTUDIO_API_KEY }} \
-e X_NCP_APIGW_API_KEY=${{ secrets.X_NCP_APIGW_API_KEY }} \
-e X_NCP_CLOVASTUDIO_REQUEST_ID=${{ secrets.X_NCP_CLOVASTUDIO_REQUEST_ID }} \
${{ secrets.DOCKERHUB_USERNAME }}/git-challenge-backend:0.1
6 changes: 3 additions & 3 deletions packages/backend/src/ai/ai.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export class AiService {
) {
this.instance.interceptors.request.use((config) => {
config.headers['X-NCP-CLOVASTUDIO-API-KEY'] = this.configService.get(
'X-NCP-CLOVASTUDIO-API-KEY',
'X_NCP_CLOVASTUDIO_API_KEY',
);
config.headers['X-NCP-APIGW-API-KEY'] = this.configService.get(
'X-NCP-APIGW-API-KEY',
'X_NCP_APIGW_API_KEY',
);
config.headers['X-NCP-CLOVASTUDIO-REQUEST-ID'] = this.configService.get(
'X-NCP-CLOVASTUDIO-REQUEST-ID',
'X_NCP_CLOVASTUDIO_REQUEST_ID',
);
return config;
});
Expand Down

0 comments on commit 443dd15

Please sign in to comment.