Environment variables support in configuration file
See original GitHub issueIs your feature request related to a problem? Cannot redirect storage and plugins folders to OS specific path (Windows OS, %ALLUSERSPROFILE%)
Describe the solution you’d like Ability to specify environment variable link in path options (storage, plugins etc.). Will be glad to see any variable format (%var%, $(var), %(var) etc)
Example:
# path to a directory with all packages
storage: %environment_variable%/storage
# path to a directory with plugins to include
plugins: %environment_variable%/plugins
Describe alternatives you’ve considered Alternatives are:
- Respect working directory (merge path from configuration file with current directory rather than configuration file location)
- Pass configuration keys via command line
verdaccio --storage <value>
orverdaccio --option storage=<value>
Additional context Seems feature related to another issues:
- https://github.com/verdaccio/verdaccio/issues/1141
- https://github.com/verdaccio/verdaccio/issues/1666
- https://github.com/verdaccio/verdaccio/issues/1621
Thank you a lot for great solution!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Use environment variables in the configuration - Elastic
You can use environment variable references in the config file to set values that need to be configurable during deployment. To do this,...
Read more >Application configs: files or environment variables? Actually ...
Environment variables are set by who's responsible for the deployment environment : by developer on local machines, by SRE/Administrator/DevOps ...
Read more >Using variables in configuration files - IBM
Use variable element in the configuration. Use process environment variables in the configuration.
Read more >Configuration Files, Environment Variables, and Command ...
The two choices are configuration files and environment variables. We can consider environment variables as easier to edit than ...
Read more >Want to use env variables in that config file? Well, you can ...
Meet the envsubst command With envsubst we can embed the value of environment variables inside a string that comes from the standard input....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you, for bringing this my attention! Loving it 😃 Can’t wait to get it merged
@weyert then you need this I guess https://github.com/verdaccio/monorepo/pull/315 , feel free to drop your thoughts.