Skip to content

Commit

Permalink
Fix bug in field setting
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 7, 2024
1 parent 725084a commit 32c32c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DOMAIN=localhost:8081
GOHUNT_USERNAME=test
DB_PASSWORD=averystrongpassword
#GOHUNT_PASSWORD=yourstrongpasswordhere (optional)
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func setField(v interface{}, fieldPath string, value string) {
log.Printf("Field not found: %s", fieldPath)
}
} else {
r = r.FieldByName(part).Elem()
r = r.FieldByName(part)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: postgres:13
environment:
- POSTGRES_USER=gohunt
- POSTGRES_PASSWORD=gohunt
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=gohunt
volumes:
- db-data:/var/lib/postgresql/data
Expand All @@ -24,7 +24,7 @@ services:
- Database.User=gohunt
- Database.DBname=gohunt
- Database.SSLmode=disabled
- Database.Password=gohunt
- Database.Password=${DB_PASSWORD}

caddy:
image: caddy:2
Expand All @@ -36,7 +36,7 @@ services:
volumes:
- caddy-data:/data
- caddy_config:/config
- ./Caddyfile.example:/etc/caddy/Caddyfile
- ./Caddyfile:/etc/caddy/Caddyfile

volumes:
db-data:
Expand Down

0 comments on commit 32c32c5

Please sign in to comment.