Skip to content

Commit

Permalink
feat(backend): DB_ENCRYPTION_PASSWORD, DB_ENCRYPTION_SALT
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrfedorov97 committed Sep 17, 2024
1 parent d09a339 commit 066ae3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public class SecurityConfiguration {

@Value("${app.frontend-url}")
private String frontendUrl;
@Value("${spring.security.oauth2.client.registration.pipedrive.client-id}")
@Value("${db.encryption.password}")
private String encryptPassword;
@Value("${spring.security.oauth2.client.registration.pipedrive.client-secret}")
@Value("${db.encryption.salt}")
private String encryptSalt;
@Value("${spring.security.oauth2.client.registration.pipedrive.client-secret}")
private String jwtSecretKey;
Expand Down
5 changes: 5 additions & 0 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ pipedrive:
base-url: https://app.pipedrive.com
base-api-url: https://api.pipedrive.com

db:
encryption:
password: ${DB_ENCRYPTION_PASSWORD} || ${PIPEDRIVE_CLIENT_ID}
salt: ${DB_ENCRYPTION_SALT} || ${PIPEDRIVE_CLIENT_SECRET}

spring:
security:
oauth2:
Expand Down

0 comments on commit 066ae3b

Please sign in to comment.