diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-01-02 11:18:49 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-01-02 11:19:04 +0100 |
commit | 0cd88dbc60085fd12fc8c6f44a638e5f04a77ce8 (patch) | |
tree | 4e01bd4973d503b742c417bb781a6cb0058182bc /nixos/modules/services | |
parent | 100d943cc1bfc11feca48ecc8bdab73108ce7af1 (diff) |
nixos/gitea: adapt configs for 1.18
Co-authored-by: Izorkin <izorkin@elven.pw>
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/gitea.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index ceb4c11728544..00e90f5b32b47 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -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) { |