1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00

feat: multi db support

This commit is contained in:
haras 2025-09-14 08:50:42 +02:00
parent 10b2b36895
commit fe6c000897
25 changed files with 2612 additions and 1433 deletions

View file

@ -183,8 +183,8 @@ func NewConfigOptions() *configOptions {
},
},
"DATABASE_URL": {
ParsedStringValue: "user=postgres password=postgres dbname=miniflux2 sslmode=disable",
RawValue: "user=postgres password=postgres dbname=miniflux2 sslmode=disable",
ParsedStringValue: "postgres://postgres:postgres/postgres?sslmode=disable",
RawValue: "postgres://postgres:postgres/postgres?sslmode=disable",
ValueType: stringType,
Secret: true,
},
@ -779,7 +779,7 @@ func (c *configOptions) IsAuthProxyUserCreationAllowed() bool {
}
func (c *configOptions) IsDefaultDatabaseURL() bool {
return c.options["DATABASE_URL"].RawValue == "user=postgres password=postgres dbname=miniflux2 sslmode=disable"
return c.options["DATABASE_URL"].RawValue == "postgres://postgres:postgres/postgres?sslmode=disable"
}
func (c *configOptions) IsOAuth2UserCreationAllowed() bool {