pyhocon
pyhocon copied to clipboard
Substitutions using file content
A variable substitution can be a token or a environmental variable.
Can we also check if the variable is a file and read the contents of the file?
Example:
rsakey: ${"/home/my_login/.ssh/rsa_key.p8"}
There is an existing proposal on the lightbend GitHub to support this type of functionality with a new include contents syntax.
rsakey: include contents("/home/my_login/.ssh/rsa_key.p8")
Additional discussions here:
https://groups.google.com/g/play-framework-dev/c/t2g-TWbqtzY