From ecb2703626950039b52ba3b82548dd5659d1982e Mon Sep 17 00:00:00 2001 From: Shahar Mike Date: Wed, 1 Nov 2023 08:15:11 +0200 Subject: [PATCH] doc(README): Explain how to use env var flags (#2096) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4862680da..f74e1e488 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,9 @@ There are also some Dragonfly-specific arguments: ./dragonfly-x86_64 --logtostderr --requirepass=youshallnotpass --cache_mode=true -dbnum 1 --bind localhost --port 6379 --save_schedule "*:30" --maxmemory=12gb --keys_output_limit=12288 --dbfilename dump.rdb ``` -Arguments can be also provided from a configuration file by running `dragonfly --flagfile `. The file should list one flag per line, with equal signs instead of spaces for key-value flags. +Arguments can be also provided via: + * `--flagfile `: The file should list one flag per line, with equal signs instead of spaces for key-value flags. No quotes are needed for flag values. + * Setting environment variables. Set `DFLY_x`, where `x` is the exact name of the flag, case sensitive. For more options like logs management or TLS support, run `dragonfly --help`.