-
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.
feat: Add ability to read full config from env var
Setting environment variable CONFIG_JSON containing the config will override any config file on disk Updated documentation.
- Loading branch information
Showing
5 changed files
with
106 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Example file for specifying the configuration using environment variables. | ||
# | ||
# use with the --env-vars-file argument to gcloud run deploy. | ||
# | ||
# The CONFIG_JSON variable contains the JSON configuration which will | ||
# override any deployed config.json file. Literal Block Scaler style (|) | ||
# is used to preserve quotes and newlines without needing escaping. | ||
# | ||
CONFIG_JSON: | | ||
{ | ||
"buckets": [ | ||
{ | ||
"unscanned": "unscanned-bucket-name", | ||
"clean": "clean-bucket-name", | ||
"quarantined": "quarantined-bucket-name" | ||
} | ||
], | ||
"ClamCvdMirrorBucket": "cvd-mirror-bucket-name" | ||
} |
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