!fixup hosts/plover re-enable gitea

This commit is contained in:
Gabriel Arazas 2024-10-04 14:24:49 +08:00
parent 0861bbd0bf
commit e7be95a0c1
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -106,8 +106,6 @@ in
# Session configuration. # Session configuration.
session.COOKIE_SECURE = true; session.COOKIE_SECURE = true;
# Some more database configuration.
# Run various periodic services. # Run various periodic services.
"cron.update_mirrors".SCHEDULE = "@every 3h"; "cron.update_mirrors".SCHEDULE = "@every 3h";
@ -168,6 +166,13 @@ in
ensureDBOwnership = true; ensureDBOwnership = true;
}; };
}; };
systemd.services.gitea.preStart = let
psql = lib.getExe' config.services.postgresql.package "psql";
schema = config.services.gitea.user;
in lib.mkBefore ''
${psql} -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${schema};"
'';
}) })
(lib.mkIf hostCfg.services.reverse-proxy.enable { (lib.mkIf hostCfg.services.reverse-proxy.enable {