zion/modules/devops.nix
coolneng 073dd48030
Remove upload limit on nginx
Change LFS path and increase push timeout

Remove LFS path

Increase nginx upload size to 512 MB

Increase nginx upload size to 1GB

Set nginx upload size to unlimited
2019-11-26 20:51:04 +01:00

30 lines
632 B
Nix

# Software development configuration
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
gitea
git-lfs
];
# Gitea setup with daily backup
services.gitea = {
enable = true;
domain = "coolneng.duckdns.org";
rootUrl = "https://coolneng.duckdns.org/gitea";
database = {
type = "postgres";
passwordFile = "/var/keys/gitea/db";
};
cookieSecure = true;
disableRegistration = true;
repositoryRoot = "/vault/git";
dump.enable = true;
useWizard = true;
extraConfig = ''
LFS_START_SERVER = true
LFS_HTTP_AUTH_EXPIRY = 60m
'';
};
}