-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shared): Add environmnet configuration for Iris DB and bump scal…
…a version in other components to enable build (#96)
- Loading branch information
davidpoltorak-io
authored
Nov 8, 2022
1 parent
818e9e0
commit a5b583f
Showing
7 changed files
with
66 additions
and
14 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
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
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,14 @@ | ||
iris { | ||
database { | ||
host = "localhost" | ||
host = ${?IRIS_DB_HOST} | ||
port = 5432 | ||
port = ${?IRIS_DB_PORT} | ||
databaseName = "iris" | ||
databaseName = ${?IRIS_DB_NAME} | ||
username = "postgres" | ||
username = ${?IRIS_DB_USER} | ||
password = "postgres" | ||
password = ${?IRIS_DB_PASSWORD} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
iris/service/server/src/main/scala/io/iohk/atala/iris/server/config/AppConfig.scala
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,16 @@ | ||
package io.iohk.atala.iris.server.config | ||
|
||
import zio.config.* | ||
import zio.config.magnolia.Descriptor | ||
|
||
final case class AppConfig( | ||
iris: IrisConfig | ||
) | ||
|
||
object AppConfig { | ||
val descriptor: ConfigDescriptor[AppConfig] = Descriptor[AppConfig] | ||
} | ||
|
||
final case class IrisConfig(database: DatabaseConfig) | ||
|
||
final case class DatabaseConfig(host: String, port: Int, databaseName: String, username: String, password: String) |
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
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