Skip to content

Commit

Permalink
Renaming DICEDB_ADMIN* with DICEDB_METADATA*
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitbbhayani committed Dec 10, 2024
1 parent 10d70d9 commit 9b71038
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DICEDB_ADMIN_ADDR=localhost:7379
DICEDB_ADMIN_USERNAME=diceadmin
DICEDB_ADMIN_PASSWORD=
DICEDB_METADATA_ADDR=localhost:7379
DICEDB_METADATA_USERNAME=diceadmin
DICEDB_METADATA_PASSWORD=
DICEDB_ADDR=localhost:7380
DICEDB_USERNAME=dice
DICEDB_PASSWORD=
Expand All @@ -9,4 +9,4 @@ ENVIRONMENT=production
REQUEST_LIMIT_PER_MIN=1000
REQUEST_WINDOW_SEC=60
ALLOWED_ORIGINS=http://localhost:3000
CRON_CLEANUP_FREQUENCY_MINS=15
CRON_CLEANUP_FREQUENCY_MINS=15
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ func LoadConfig() *Config {
Username string
Password string
}{
Addr: getEnv("DICEDB_ADMIN_ADDR", "localhost:7379"), // Default DiceDB Admin address
Username: getEnv("DICEDB_ADMIN_USERNAME", "diceadmin"), // Default DiceDB Admin username
Password: getEnv("DICEDB_ADMIN_PASSWORD", ""), // Default DiceDB Admin password
Addr: getEnv("DICEDB_METADATA_ADDR", "localhost:7379"), // Default DiceDB Admin address
Username: getEnv("DICEDB_METADATA_USERNAME", "diceadmin"), // Default DiceDB Admin username
Password: getEnv("DICEDB_METADATA_PASSWORD", ""), // Default DiceDB Admin password
},
DiceDB: struct {
Addr string
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ services:
- dicedbadmin
- dicedb
environment:
- DICEDB_ADMIN_ADDR=dicedbadmin:7379
- DICEDB_ADMIN_USERNAME=${DICEDB_ADMIN_USERNAME}
- DICEDB_ADMIN_PASSWORD=${DICEDB_ADMIN_PASSWORD}
- DICEDB_METADATA_ADDR=dicedbadmin:7379
- DICEDB_METADATA_USERNAME=${DICEDB_METADATA_USERNAME}
- DICEDB_METADATA_PASSWORD=${DICEDB_METADATA_PASSWORD}
- DICEDB_ADDR=dicedb:7379
- DICEDB_USERNAME=${DICEDB_USERNAME}
- DICEDB_PASSWORD=${DICEDB_PASSWORD}
Expand Down

0 comments on commit 9b71038

Please sign in to comment.