generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uptake latest sdk; add ion local resolver (#645)
* uptake latest sdk; add ion local resolver * add back toml example * add link
- Loading branch information
1 parent
b72143d
commit 476fbe1
Showing
11 changed files
with
22 additions
and
15 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
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
File renamed without changes.
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# TOML Config File | ||
|
||
Config is managed using a [TOML](https://toml.io/en/) [file](https://github.com/TBD54566975/ssi-service/blob/main/config/config.toml). There are sets of configuration values for the server | ||
(e.g. which port to listen on), the services (e.g. which database to use), and each service. | ||
|
||
Each service may define specific configuration, such as which DID methods are enabled for the DID service. | ||
|
||
A full config example is [provided here](../../config/kitchensink.toml). | ||
|
||
## Usage | ||
|
||
How it works: | ||
|
||
1. On startup: SSI-Service loads default values into the `SSIServiceConfig` | ||
2. Checks for a TOML config file: | ||
- If exists...load toml file | ||
- If does not exist...it uses a default config defined in the code inline | ||
- If exists...load toml file | ||
- If does not exist...it uses a default config defined in the code inline | ||
3. Loads the `config/.env` file and adds the env variables defined in this file to the final `SSIServiceConfig` | ||
|
||
There are a number of configuration files in this directory provided as defaults. | ||
Specifically, `config.toml`is intended to be used when the service is run as a local go process. There is another | ||
file, `compose.toml`, which is intended to be used when the service is run via docker compose. To make this switch, | ||
it's recommended that one renames the file to `config.toml` and then maintains the original `compose.toml` file as | ||
`local.toml` or similar. | ||
`local.toml` or similar. |
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
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