From 6b474b2df41f24b653b717e0e8c17687bdc63879 Mon Sep 17 00:00:00 2001 From: great-park Date: Mon, 16 Oct 2023 22:30:49 +0900 Subject: [PATCH] =?UTF-8?q?hotfix=20:=20Github=20OAuth=20Info=20-=20Profil?= =?UTF-8?q?e=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API-Server/src/main/resources/application-dev.yml | 9 +++++++++ API-Server/src/main/resources/application-prod.yml | 9 +++++++++ API-Server/src/main/resources/application.yml | 10 ---------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/API-Server/src/main/resources/application-dev.yml b/API-Server/src/main/resources/application-dev.yml index de7ce03a..648db7b9 100644 --- a/API-Server/src/main/resources/application-dev.yml +++ b/API-Server/src/main/resources/application-dev.yml @@ -2,6 +2,15 @@ spring: config: activate: on-profile: dev + security: + oauth2: + client: + registration: + github: + clientId: ${DEV_GITHUB_CLIENT_ID} + clientSecret: ${DEV_GITHUB_CLIENT_SECRET} + redirectUri: ${DEV_GITHUB_REDIRECT_URI} + baseUri: "https://github.com/login/oauth/authorize" datasource: url: ${DEV_DB_HOST} diff --git a/API-Server/src/main/resources/application-prod.yml b/API-Server/src/main/resources/application-prod.yml index 53a735ef..1215e38a 100644 --- a/API-Server/src/main/resources/application-prod.yml +++ b/API-Server/src/main/resources/application-prod.yml @@ -2,6 +2,15 @@ spring: config: activate: on-profile: prod + security: + oauth2: + client: + registration: + github: + clientId: ${PROD_GITHUB_CLIENT_ID} + clientSecret: ${PROD_GITHUB_CLIENT_SECRET} + redirectUri: ${PROD_GITHUB_REDIRECT_URI} + baseUri: "https://github.com/login/oauth/authorize" datasource: url: ${PROD_DB_HOST} diff --git a/API-Server/src/main/resources/application.yml b/API-Server/src/main/resources/application.yml index a6dbdfea..8de349b1 100644 --- a/API-Server/src/main/resources/application.yml +++ b/API-Server/src/main/resources/application.yml @@ -2,16 +2,6 @@ spring: profiles: default: dev - security: - oauth2: - client: - registration: - github: - clientId: ${GITHUB_CLIENT_ID} - clientSecret: ${GITHUB_CLIENT_SECRET} - redirectUri: ${GITHUB_REDIRECT_URI} - baseUri: "https://github.com/login/oauth/authorize" - kafka: bootstrap-servers: 10.0.75.183:9092,10.0.90.35:9092,10.0.84.239:9092 ### dev-prod 분리 ###