mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/gitea: adapt configs for 1.18
Co-authored-by: Izorkin <izorkin@elven.pw>
This commit is contained in:
parent
100d943cc1
commit
0cd88dbc60
1 changed files with 5 additions and 2 deletions
|
@ -395,7 +395,7 @@ in
|
||||||
ROOT_URL = cfg.rootUrl;
|
ROOT_URL = cfg.rootUrl;
|
||||||
}
|
}
|
||||||
(mkIf cfg.enableUnixSocket {
|
(mkIf cfg.enableUnixSocket {
|
||||||
PROTOCOL = "unix";
|
PROTOCOL = "http+unix";
|
||||||
HTTP_ADDR = "/run/gitea/gitea.sock";
|
HTTP_ADDR = "/run/gitea/gitea.sock";
|
||||||
})
|
})
|
||||||
(mkIf (!cfg.enableUnixSocket) {
|
(mkIf (!cfg.enableUnixSocket) {
|
||||||
|
@ -404,7 +404,6 @@ in
|
||||||
})
|
})
|
||||||
(mkIf cfg.lfs.enable {
|
(mkIf cfg.lfs.enable {
|
||||||
LFS_START_SERVER = true;
|
LFS_START_SERVER = true;
|
||||||
LFS_CONTENT_PATH = cfg.lfs.contentDir;
|
|
||||||
})
|
})
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -426,6 +425,10 @@ in
|
||||||
oauth2 = {
|
oauth2 = {
|
||||||
JWT_SECRET = "#oauth2jwtsecret#";
|
JWT_SECRET = "#oauth2jwtsecret#";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lfs = mkIf (cfg.lfs.enable) {
|
||||||
|
PATH = cfg.lfs.contentDir;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
|
services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue