Skip to content

Commit

Permalink
nixos/gitea: adapt configs for 1.18
Browse files Browse the repository at this point in the history
Co-authored-by: Izorkin <izorkin@elven.pw>
  • Loading branch information
Ma27 and Izorkin committed Jan 2, 2023
1 parent 100d943 commit 0cd88db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/misc/gitea.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -404,7 +404,6 @@ in
})
(mkIf cfg.lfs.enable {
LFS_START_SERVER = true;
LFS_CONTENT_PATH = cfg.lfs.contentDir;
})

];
Expand All @@ -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) {
Expand Down

0 comments on commit 0cd88db

Please # to comment.