set up hlaeja account registry
This commit is contained in:
@@ -8,6 +8,7 @@ In realms of connectedness, where devices roam free, A nexus of management, harm
|
|||||||
|------------------------|:--------:|-------------------------|
|
|------------------------|:--------:|-------------------------|
|
||||||
| spring.profiles.active | ✓ | Spring Boot environment |
|
| spring.profiles.active | ✓ | Spring Boot environment |
|
||||||
| jwt.public-key | ✓ | JWT public key file |
|
| jwt.public-key | ✓ | JWT public key file |
|
||||||
|
| account-registry.url | ✓ | Account Register URL |
|
||||||
|
|
||||||
*Required: ✓ can be stored as text, and ✗ need to be stored as secret.*
|
*Required: ✓ can be stored as text, and ✗ need to be stored as secret.*
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ dependencies {
|
|||||||
implementation(hlaeja.kotlin.logging)
|
implementation(hlaeja.kotlin.logging)
|
||||||
implementation(hlaeja.kotlin.reflect)
|
implementation(hlaeja.kotlin.reflect)
|
||||||
implementation(hlaeja.kotlinx.coroutines)
|
implementation(hlaeja.kotlinx.coroutines)
|
||||||
|
implementation(hlaeja.library.hlaeja.common.messages)
|
||||||
implementation(hlaeja.library.hlaeja.jwt)
|
implementation(hlaeja.library.hlaeja.jwt)
|
||||||
implementation(hlaeja.projectreactor.kotlin.reactor.extensions)
|
implementation(hlaeja.projectreactor.kotlin.reactor.extensions)
|
||||||
implementation(hlaeja.springboot.starter.actuator)
|
implementation(hlaeja.springboot.starter.actuator)
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
package ltd.hlaeja
|
package ltd.hlaeja
|
||||||
|
|
||||||
|
import ltd.hlaeja.property.AccountRegistryProperty
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
|
import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||||
import org.springframework.boot.runApplication
|
import org.springframework.boot.runApplication
|
||||||
|
|
||||||
|
@EnableConfigurationProperties(
|
||||||
|
AccountRegistryProperty::class,
|
||||||
|
)
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
class Application
|
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:
|
resources:
|
||||||
static-locations: file:src/main/resources/static/
|
static-locations: file:src/main/resources/static/
|
||||||
|
|
||||||
|
account-registry:
|
||||||
|
url: http://localhost:9050
|
||||||
|
|
||||||
---
|
---
|
||||||
##########################
|
##########################
|
||||||
### Docker environment ###
|
### Docker environment ###
|
||||||
@@ -52,6 +55,9 @@ spring:
|
|||||||
activate:
|
activate:
|
||||||
on-profile: docker
|
on-profile: docker
|
||||||
|
|
||||||
|
account-registry:
|
||||||
|
url: http://AccountRegistry:8080
|
||||||
|
|
||||||
---
|
---
|
||||||
##############################
|
##############################
|
||||||
### Production environment ###
|
### Production environment ###
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
jwt:
|
jwt:
|
||||||
public-key: cert/valid-public-key.pem
|
public-key: cert/valid-public-key.pem
|
||||||
|
account-registry:
|
||||||
|
url: http://localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user