Skip to content

Using docker secrets or environment variables in the configuration #1782

Closed Locked Answered by retrodaredevil
retrodaredevil asked this question in Support
Discussion options

You must be logged in to vote

I ended up looking at the source code, since I couldn't find anything about environment variable substitution.
To get this working, you may place text like {{HOMEPAGE_VAR_XXX}}, to directly substitute environment variables. If you define an environment variable named {{HOMEPAGE_FILE_XXX}}, the contents of the file at the location specified by the environment variable will be substituted.

I think this should be better documented in the docs.

Here is the code: https://github.com/benphelps/homepage/blob/63d4c6bdf8474299316965f655fc092656f50154/src/utils/config/config.js#L51C22-L51C22

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cesarnr21
Comment options

@shamoon
Comment options

Answer selected by retrodaredevil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants