Skip to content

Commit ac19761

Browse files
committed
change credentials to use env vars
1 parent 75ec04c commit ac19761

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/resources/application.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ spring:
44
ddl-auto: none
55
show-sql: true
66
datasource:
7-
url: jdbc:mariadb://ip:3306/db-name
8-
username: admin
9-
password: pass
7+
url: jdbc:mariadb://${DDB_DATABASE_URL}:3306/${DDB_DATABASE_NAME}
8+
username: ${DDB_DATABASE_USER}
9+
password: ${DDB_DATABASE_PASSWORD}
1010
driver-class-name: org.mariadb.jdbc.Driver
1111
security:
1212
oauth2:
1313
client:
1414
registration:
1515
discord:
16-
clientId: client id
17-
clientSecret: client secret
16+
clientId: ${DDB_CLIENT_ID}
17+
clientSecret: ${DDB_CLIENT_SECRET}
1818
authorizationGrantType: authorization_code
1919
redirectUri: "{baseUrl}/login/oauth2/code/discord"
2020
scope: identify

0 commit comments

Comments
 (0)