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

@@ -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.*

View File

@@ -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)

View File

@@ -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

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: 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 ###

View File

@@ -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