nixos/gitea: adapt configs for 1.18

Co-authored-by: Izorkin <izorkin@elven.pw>
This commit is contained in:
Maximilian Bosch 2023-01-02 11:18:49 +01:00
parent 100d943cc1
commit 0cd88dbc60
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -395,7 +395,7 @@ in
ROOT_URL = cfg.rootUrl;
}
(mkIf cfg.enableUnixSocket {
PROTOCOL = "unix";
PROTOCOL = "http+unix";
HTTP_ADDR = "/run/gitea/gitea.sock";
})
(mkIf (!cfg.enableUnixSocket) {
@ -404,7 +404,6 @@ in
})
(mkIf cfg.lfs.enable {
LFS_START_SERVER = true;
LFS_CONTENT_PATH = cfg.lfs.contentDir;
})
];
@ -426,6 +425,10 @@ in
oauth2 = {
JWT_SECRET = "#oauth2jwtsecret#";
};
lfs = mkIf (cfg.lfs.enable) {
PATH = cfg.lfs.contentDir;
};
};
services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {