Skip to content

Commit

Permalink
Change App settings (and workflow) for different environments (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvillavicencio authored Nov 15, 2023
1 parent d908aa1 commit cd27c9c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Deployment to EC2 Instance

on:
workflow_dispatch:
push:
branches:
- main

jobs:
build-and-test:
Expand Down
14 changes: 14 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ spring:
redis:
port: 6379
host: localhost
security:
oauth2:
client:
provider:
bungieOAuth2Client:
authorization-uri: https://www.bungie.net/en/oauth/authorize
token-uri: https://www.bungie.net/platform/app/oauth/token/
registration:
bungieOAuth2Client:
provider: bungieOAuth2Client
client-id: ${BUNGIE_CLIENT_ID}
client-secret: ${BUNGIE_CLIENT_SECRET}
authorization-grant-type: authorization_code
redirect-uri: https://localhost:443/login/oauth2/code/bungieOAuth2Client

server:
port: 443
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spring:
client-id: ${BUNGIE_CLIENT_ID}
client-secret: ${BUNGIE_CLIENT_SECRET}
authorization-grant-type: authorization_code
redirect-uri: https://localhost:443/login/oauth2/code/bungieOAuth2Client
redirect-uri: https://d2discord.app/login/oauth2/code/bungieOAuth2Client

server:
port: 443
Expand Down

0 comments on commit cd27c9c

Please sign in to comment.