From 073dd4803029e70b65ed0dedc52a67cb35b79b37 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 25 Nov 2019 18:56:39 +0100 Subject: [PATCH] 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 --- modules/devops.nix | 2 +- modules/webstack.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/devops.nix b/modules/devops.nix index 754639b..f1ad682 100644 --- a/modules/devops.nix +++ b/modules/devops.nix @@ -22,7 +22,7 @@ useWizard = true; extraConfig = '' LFS_START_SERVER = true - LFS_CONTENT_PATH = /var/lib/gitea/data/lfs + LFS_HTTP_AUTH_EXPIRY = 60m ''; }; diff --git a/modules/webstack.nix b/modules/webstack.nix index e1f5636..a6013c2 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -17,6 +17,7 @@ recommendedGzipSettings = true; recommendedProxySettings = true; recommendedOptimisation = true; + clientMaxBodySize = "0"; sslCiphers = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK:!AES128"; sslProtocols = "TLSv1.2 TLSv1.3"; sslDhparam = "/var/lib/dhparams/nginx.pem";