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:
parent
10b2b36895
commit
fe6c000897
25 changed files with 2612 additions and 1433 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue