-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #596 from tukcomCD2024/fix/rabbitmq_config-core-B-…
…#595 fix : rabbitmq ssl 설정 추가 #595
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...src/main/java/site/timecapsulearchive/core/global/config/rabbitmq/RabbitmqProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package site.timecapsulearchive.core.global.config.rabbitmq; | ||
|
||
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.boot.context.properties.NestedConfigurationProperty; | ||
|
||
@ConfigurationProperties(prefix = "spring.rabbitmq") | ||
public record RabbitmqProperties( | ||
String host, | ||
int port, | ||
String userName, | ||
String password, | ||
String virtualHost, | ||
ConfirmType publisherConfirmType, | ||
boolean publisherReturns, | ||
@NestedConfigurationProperty | ||
SSL ssl | ||
) { | ||
protected record SSL( | ||
boolean enabled | ||
) { | ||
|
||
} | ||
|
||
public boolean isSslEnabled() { | ||
return ssl != null && ssl.enabled; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters