Skip to content

Commit

Permalink
relay: env var for persist dir, and alt env var for data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Nov 8, 2024
1 parent 1ae8ae9 commit 951384a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/bigsky/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func run(args []string) error {
Name: "data-dir",
Usage: "path of directory for CAR files and other data",
Value: "data/bigsky",
EnvVars: []string{"DATA_DIR"},
EnvVars: []string{"RELAY_DATA_DIR", "DATA_DIR"},
},
&cli.StringFlag{
Name: "plc-host",
Expand All @@ -112,8 +112,9 @@ func run(args []string) error {
EnvVars: []string{"RELAY_METRICS_LISTEN", "BGS_METRICS_LISTEN"},
},
&cli.StringFlag{
Name: "disk-persister-dir",
Usage: "set directory for disk persister (implicitly enables disk persister)",
Name: "disk-persister-dir",
Usage: "set directory for disk persister (implicitly enables disk persister)",
EnvVars: []string{"RELAY_PERSISTER_DIR"},
},
&cli.StringFlag{
Name: "admin-key",
Expand Down

0 comments on commit 951384a

Please sign in to comment.