nixos: services: mealie: fix DB auth
Turns out the package update [1] was because someone couldn't make it work on the previous version, and added a new setting to configure it more easily :-). [1]: https://github.com/NixOS/nixpkgs/pull/314294
This commit is contained in:
parent
7ea10f7823
commit
10a7111f1c
|
@ -35,12 +35,8 @@ in
|
||||||
|
|
||||||
# Use PostgreSQL
|
# Use PostgreSQL
|
||||||
DB_ENGINE = "postgres";
|
DB_ENGINE = "postgres";
|
||||||
POSTGRES_USER = "mealie";
|
# Make it work with socket auth
|
||||||
POSTGRES_PASSWORD = "";
|
POSTGRES_URL_OVERRIDE = "postgresql://mealie:@/mealie?host=/run/postgresql";
|
||||||
POSTGRES_SERVER = "/run/postgresql";
|
|
||||||
# Pydantic and/or mealie doesn't handle the URI correctly, hijack it
|
|
||||||
# with query parameters...
|
|
||||||
POSTGRES_DB = "mealie?host=/run/postgresql&dbname=mealie";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue