Skip to content

Commit

Permalink
hotfix : Github OAuth Info - Profile 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
great-park committed Oct 16, 2023
1 parent e356698 commit 6b474b2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
9 changes: 9 additions & 0 deletions API-Server/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
9 changes: 9 additions & 0 deletions API-Server/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
10 changes: 0 additions & 10 deletions API-Server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 분리 ###
Expand Down

0 comments on commit 6b474b2

Please sign in to comment.