Skip to content

Commit

Permalink
Test env on github
Browse files Browse the repository at this point in the history
  • Loading branch information
vietlvq2609 committed Jun 12, 2024
1 parent cc51ee3 commit df508f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/vietle/mychatapi/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class UserService implements UserDetailsService {
private final UserRepository userRepository;
private final PasswordEncoder passwordEncoder;

@Value("${spring.cloud.azure.storage.blob.account-name}")
private String accountName;
// @Value("${spring.cloud.azure.storage.blob.account-name}")
// private String accountName;

@Value("${spring.cloud.azure.storage.blob.account-key}")
private String accountKey;
Expand All @@ -47,7 +47,7 @@ public class UserService implements UserDetailsService {
private BlobContainerClient getBlobContainerClient() {
return new BlobContainerClientBuilder()
.connectionString(String.format("DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;EndpointSuffix=core.windows.net",
accountName, accountKey))
"bellchat", accountKey))
.containerName(containerName)
.buildClient();
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ spring.sql.init.mode=always
spring.devtools.restart.exclude=static/**,public/**

## Azure Cloud Service
spring.cloud.azure.storage.blob.account-name=${BELL_CHAT_AZURE_STORAGE_ACCOUNT_NAME}
# spring.cloud.azure.storage.blob.account-name=${BELL_CHAT_AZURE_STORAGE_ACCOUNT_NAME}
spring.cloud.azure.storage.blob.endpoint=${BELL_CHAT_AZURE_STORAGE_ACCOUNT_ENDPOINT}
spring.cloud.azure.storage.blob.account-key=${BELL_CHAT_AZURE_STORAGE_ACCOUNT_KEY}
azure.storage.container-name=${BELL_CHAT_AZURE_STORAGE_CONTAINER_NAME}


### JWT Token
jwt.secret=${BELL_CHAT_JWT_SECRET}
jwt.expirationTime=${BELL_CHAT_JWT_EXPIRATION_TIME}

0 comments on commit df508f3

Please sign in to comment.