set up hlaeja account registry
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
@@ -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 ###
|
||||
|
||||
Reference in New Issue
Block a user