mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
!fixup hosts/plover re-enable gitea
This commit is contained in:
parent
0861bbd0bf
commit
e7be95a0c1
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user