set up hlaeja account registry

This commit is contained in:
2025-01-17 13:38:37 +01:00
parent 410cbd2b21
commit 7cf39926d7
6 changed files with 23 additions and 0 deletions

View File

@@ -1,8 +1,13 @@
package ltd.hlaeja
import ltd.hlaeja.property.AccountRegistryProperty
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
@EnableConfigurationProperties(
AccountRegistryProperty::class,
)
@SpringBootApplication
class Application

View File

@@ -0,0 +1,8 @@
package ltd.hlaeja.property
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(prefix = "account-registry")
data class AccountRegistryProperty(
val url: String,
)

View File

@@ -43,6 +43,9 @@ spring:
resources:
static-locations: file:src/main/resources/static/
account-registry:
url: http://localhost:9050
---
##########################
### Docker environment ###
@@ -52,6 +55,9 @@ spring:
activate:
on-profile: docker
account-registry:
url: http://AccountRegistry:8080
---
##############################
### Production environment ###