services: gitea: adapt to 23.11 postgres changes
This commit is contained in:
parent
2b8341ea9c
commit
f3d2d291c5
|
@ -85,6 +85,9 @@ in {
|
|||
type = "postgres";
|
||||
# user needs to be the same as gitea user
|
||||
user = giteaUser;
|
||||
# FIXME: change database name to match 23.11 postgres changes around ensureDatabase
|
||||
createDatabase = false;
|
||||
socket = "/run/postgresql";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -102,7 +105,7 @@ in {
|
|||
# NOTE: no need to use postgresql.ensureDatabases because the gitea module
|
||||
# takes care of this automatically
|
||||
services.postgresqlBackup = {
|
||||
databases = ["gitea"];
|
||||
databases = [config.services.gitea.database.name];
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
|
|
Loading…
Reference in a new issue