mirror of
https://github.com/Luzifer/envrun.git
synced 2024-11-09 23:00:07 +00:00
Document encrypted .env file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b7d3e82e8a
commit
f24eb5ce5c
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -45,3 +45,18 @@ __CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
|
||||||
ANOTHER_VAR = foo
|
ANOTHER_VAR = foo
|
||||||
MY_TEST_VAR = hello world
|
MY_TEST_VAR = hello world
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Encrypted `.env`-file
|
||||||
|
|
||||||
|
In case you don't want to put the environment variables into a plain text file onto your disk you can use an AES256 encrypted file and provide a password to `envrun`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# echo 'MYVAR=myvalue' | openssl enc -e -aes-256-cbc -pass pass:justatest -base64 -out .env
|
||||||
|
|
||||||
|
# cat .env
|
||||||
|
U2FsdGVkX18xcVIMejjwWzh1DppzptJCHhORH/JDj10=
|
||||||
|
|
||||||
|
# envrun -p justatest --clean -- env
|
||||||
|
MYVAR=myvalue
|
||||||
|
2017/03/21 16:34:57 Process exitted with code 0
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue