-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move service description + contact url into config
- Loading branch information
1 parent
010b7bb
commit 09b459e
Showing
2 changed files
with
6 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,12 @@ class Config(BaseSettings): | |
|
||
service_id: str = str(":".join(list(SERVICE_TYPE.values())[:2])) | ||
service_name: str = "Bento Drop Box Service" | ||
service_data_source: Literal["local"] = "local" | ||
service_data: str = "data/" | ||
service_description: str = "Drop box service for a Bento platform node." | ||
service_contact_url: str = "mailto:[email protected]" | ||
service_url: str = "http://127.0.0.1:5000" # base URL to construct object URIs from | ||
|
||
service_data: str = "data/" | ||
service_data_source: Literal["local"] = "local" | ||
traversal_limit: int = 16 | ||
|
||
bento_authz_service_url: str # Bento authorization service base URL | ||
|
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 |
---|---|---|
|
@@ -78,9 +78,9 @@ async def service_info(config: ConfigDependency, logger: LoggerDependency) -> Re | |
"id": config.service_id, | ||
"name": config.service_name, | ||
"type": SERVICE_TYPE, | ||
"description": "Drop box service for a Bento platform node.", | ||
"description": config.service_description, | ||
"organization": SERVICE_ORGANIZATION_C3G, | ||
"contactUrl": "mailto:[email protected]", | ||
"contactUrl": config.service_contact_url, | ||
"version": __version__, | ||
"bento": { | ||
"serviceKind": BENTO_SERVICE_KIND | ||
|