[bugfix] update the default configuration to not set a db type or address, to require explicitly setting it (#4228)

This updates the database defaults to remove a type or address. This is to help ensure we don't have any repeats of https://codeberg.org/superseriousbusiness/gotosocial/issues/4183, it means the user needs to explicitly configure these things core settings instead of relying on defaults.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4228
Reviewed-by: Daenney <daenney@noreply.codeberg.org>
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
kim 2025-06-24 12:32:52 +02:00 committed by kim
commit 9d5af6c3dc
3 changed files with 5 additions and 5 deletions

View file

@ -41,8 +41,8 @@ var Defaults = Configuration{
Port: 8080,
TrustedProxies: []string{"127.0.0.1/32", "::1"}, // localhost
DbType: "sqlite",
DbAddress: "db.sqlite",
DbType: "",
DbAddress: "",
DbPort: 5432,
DbUser: "",
DbPassword: "",